app/Console/Commands/LongJobCommand.php
<?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');
}
}