• File: FlushFailedCommand.php
  • Full Path: /home/masbinta/public_html/core/vendor/laravel/framework/src/Illuminate/Queue/Console/FlushFailedCommand.php
  • File size: 617 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?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!');
    }
}