vendredi 20 juillet 2018

Laravel: How do I run a console command inside a migration?

I created a Laravel console command in routes/console.php. I would like to run this command from a migration? How can I do it?

I would like to avoid using the PHP's exec() function because it's unpredictable where the path of my laravel app is going to be and which OS will be run on.

I am using Laravel 5.x



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire