BayronVazquez wrote a reply+100 XP
3mos ago
BayronVazquez liked a comment+100 XP
3mos ago
@sr57 not sure why it's not part of the docs but after checking the framework itself you could do it like this:
$schedule->call(function () {
DB::table('recent_users')->delete();
})->daily()->name('My Description');
//or
$schedule->call(function () {
DB::table('recent_users')->delete();
})->daily()->description('My Description');