Answers for "laravel run schedule locally"

PHP
1

laravel scheduler run

php artisan schedule:list
php artisan schedule:run
Posted by: Guest on May-08-2021
1

laravel run schedule only on production

if (App::environment('production')) {
   $schedule->command('file:generate')
         ->daily();
   //run your commands here

}
Posted by: Guest on July-29-2021
0

laravel run schedule locally

php artisan schedule:work
Posted by: Guest on October-05-2021
2

Laravel Scheduler

$schedule->call(function () {
            DB::table('users')->whereYear('last_login_at','<',date('Y')-1)->delete();
        })->daily();
Posted by: Guest on May-10-2020

Browse Popular Code Answers by Language