Not sure if this work, but under Linux environment, you can try append an '&' to the command, e.g. shell_exec('your-artisan-call &').
In Windows environment, you may need to use shell_exec('START /MIN your-artisan-call')
I run the artisan:call via controller and calling it from button in frontend. What if the data that is being run using artisan:call is huge and cause the frontend to be abort.
For this issue how to maintain the command to be run in background and keep on running until the process in handle is done even the php is already timeout or abort.
Thank you.
This is the whole point of queues
https://laravel.com/docs/6.x/queues
Queues allow you to defer the processing of a time consuming task, such as sending an email, until a later time. Deferring these time consuming tasks drastically speeds up web requests to your application.
Please or to participate in this conversation.