mooxphp/moox

View on GitHub
app/Console/Commands/LongJobCommand.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Console\Commands;

use App\Jobs\LongJob;
use Illuminate\Console\Command;

class LongJobCommand extends Command
{
    protected $signature = 'moox:longjob';

    protected $description = 'Start the Moox Long Job';

    public function __construct()
    {
        parent::__construct();
    }

    public function handle()
    {
        $this->info('Starting Moox Long Job');

        LongJob::dispatch();

        $this->info('Moox Long Job finished');
    }
}