Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 laravel 8.x 中创建了一个自定义命令 -'command:downloadAndImport'我可以通过控制器调用它,如下所示 -
'command:downloadAndImport'
Artisan::queue('command:downloadAndImport', ['url' => $url, 'path' => $file->path]);
我该怎么做才能使这个调用成为异步调用?