Scheduled tasks in Laravel

 

Add scheduled tasks in Laravel:

Add in App\Console\Kernel.php:

 protected function schedule(Schedule $schedule)
    {
        // $schedule->command('inspire')->hourly();
       
        $schedule->call('App\Http\Controllers\SchedjobController@runSchedjobs')->everyFiveMinutes();
       
    }


Check task list in CLI:

php artisan schedule:list


Comentarii

Postări populare de pe acest blog

Process Command Line Arguments in Python

SQL injection with UNION

Docker compose DNS resolution