i am running command php artisan schedule:run
and it will work . but i want to update thing everyMinute(); automatically without trigger command every time .if i have to trigger it mannualy then what is the meaning of scheduler
- my command file
public function handle()
{
$update = Roi::find(12);
$update->level = 48;
$update->save();
}
2.kernal.php
protected function schedule(Schedule $schedule)
{
$schedule->command('level:update')->everyTwoMinutes();
}
i am checking updates in updated_at
timestamp in database
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire