Answers for "artisan::call('shedule:cron');"

PHP
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

Code answers related to "artisan::call('shedule:cron');"

Browse Popular Code Answers by Language