📜  laravel cronjob - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:46.076000             🧑  作者: Mango

代码示例2
//App\Console\Kernel

protected function schedule(Schedule $schedule)
    {
        $schedule->call(function () {
            DB::table('recent_users')->delete();
        })->daily();
    }