Answers for "how to use cron job in laravel"

PHP
3

run laravel cron job on cpanel

/usr/local/bin/php /home/hosting-username/laravel-folder/artisan schedule:run >> /dev/null 2>&1
Posted by: Guest on October-12-2021
1

scheduling in laravel in custom cron

protected function schedule(Schedule $schedule)
    {
        $schedule->call(function () {

        })->->monthlyOn(23, '13:00');
    }
Posted by: Guest on June-14-2021
0

laravel cronjob

//AppConsoleKernel

protected function schedule(Schedule $schedule)
    {
        $schedule->call(function () {
            DB::table('recent_users')->delete();
        })->daily();
    }
Posted by: Guest on June-21-2021
0

scheduling in laravel in custom cron

$schedule->command('command')->when(function (){
        return Carbon::create(2020,4,28,13)->isPast();
    });
Posted by: Guest on June-14-2021

Browse Popular Code Answers by Language