Answer the question
In order to leave comments, you need to log in
Why is Artisan::call/queue('some:command') waiting for a response instead of just running a command?
PHP Framework Laravel is used.
There is a console command that runs for ~10 minutes. I want to run this command through the web interface without waiting for a response/command completion.
Did it like this:
public function someCommand()
{
\Artisan::queue('some:command'); // Artisan::call() тоже пробовал
flash()->info('The command has been launched.');
return redirect()->back();
}
Answer the question
In order to leave comments, you need to log in
Did you enable the driver in the config/queue.php config?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question