mardi 21 juillet 2020

laravel 5.8 scheduler not working automatically have to trigger manual

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

  1. 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



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3hh8XAU
via IFTTT

Aucun commentaire:

Enregistrer un commentaire