Answers for "use cron to schedule a job laravel"

PHP
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

Browse Popular Code Answers by Language