ldc-volena/app/Console/Commands/UpdatePlanificatedStatus.php

34 lines
750 B
PHP

<?php
namespace App\Console\Commands;
use App\Jobs\UpdatePlanificatedStatus as UpdatePlanificatedStatusJob;
use Illuminate\Console\Command;
class UpdatePlanificatedStatus extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'uwil:update-planificated-status';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Update models planificated status.';
/**
* Execute the console command.
*
* @return void
*/
public function handle(): void
{
(new UpdatePlanificatedStatusJob())->handle();
$this->info('Models\' planificated status updated 👌');
}
}