我的代码如下;
protected function schedule(Schedule $schedule){
$schedule->job(new SendFeedbackEmail)->everyMinute();
}
您需要创建一个CRON作业来每分钟运行一次调度程序。
然后,CRON将自动触发每分钟并运行您在kernel-> schedule函数中设置的任何命令。
您可以在Starting the Scheduler下的Laravel documentation中找到详细信息
您需要为此设置CRON作业。
您可以运行以下命令手动运行此队列吗?
php artisan schedule:run