vd/vendor/illuminate/queue/Console/FlushFailedCommand.php
2018-11-05 09:26:30 +08:00

35 lines
617 B
PHP

<?php
namespace Illuminate\Queue\Console;
use Illuminate\Console\Command;
class FlushFailedCommand extends Command
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'queue:flush';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Flush all of the failed queue jobs';
/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
$this->laravel['queue.failer']->flush();
$this->info('All failed jobs deleted successfully!');
}
}