laravel run schedule every three minute 5.6 code example
Example: Laravel Scheduler
$schedule->call(function () {
DB::table('users')->whereYear('last_login_at','<',date('Y')-1)->delete();
})->daily();
$schedule->call(function () {
DB::table('users')->whereYear('last_login_at','<',date('Y')-1)->delete();
})->daily();