【发布时间】:2020-11-06 06:58:07
【问题描述】:
如何在控制器中执行 php artisan queue:work --stop-when-empty 我试图在 php artisan 中调用它,如下所示
$execute = artisan::call('php artisan queue:work --stop-when-empty');
但是什么都没发生,你能帮忙吗
【问题讨论】:
标签: laravel-7.x laravel-artisan
如何在控制器中执行 php artisan queue:work --stop-when-empty 我试图在 php artisan 中调用它,如下所示
$execute = artisan::call('php artisan queue:work --stop-when-empty');
但是什么都没发生,你能帮忙吗
【问题讨论】:
标签: laravel-7.x laravel-artisan
\Artisan::call('queue:work --stop-when-empty');
【讨论】: