//推送一个闭包去队列,这个方法非常的方便及快速的来处理需要使用队列的简单的任务 Route::get('/', function(){ Queue::push(function($job){ Log::info('Queues test info'); $job->delete();//删除 }); return'Job added to the queue'; });
/* |-------------------------------------------------------------------------- | Failed Queue Jobs |-------------------------------------------------------------------------- | | These options configure the behavior of failed queue job logging so you | can control which database and table are used to store the jobs that | have failed. You may change them to any database / table you wish. | */