ldc-crm/app/Console/Commands/StartStatJobs.php
2021-10-29 12:53:46 +02:00

35 lines
674 B
PHP

<?php
namespace App\Console\Commands;
use App\Jobs\StartStatJobs as JobsStartStatJobs;
use Illuminate\Console\Command;
class StartStatJobs extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'stats:collect';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Force push the collect stats jobs into the queue (stats)';
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
\dispatch(new JobsStartStatJobs())->afterResponse();
return 0;
}
}