Categories
How to run artisan command in background without queues?
How to run a command to work in the background, just like the schedule:run task scheduler does. But I want to do this in the controller.
Answer the question
In order to leave comments, you need to log in
exec('nohup php artisan some:command > /dev/null &');
Artisan::call(Command::class)
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question