BayronVazquez's avatar

BayronVazquez wrote a reply+100 XP

1d ago

Get Inserted Id from DB::insert()

I think in this case it's necessary to use queues; in processes that take a long time there aren't many alternatives.

BayronVazquez's avatar

BayronVazquez wrote a reply+100 XP

5mos ago

Schedule:list - description with a closure?

thank you, this works fine in laravel 12

BayronVazquez's avatar

BayronVazquez liked a comment+100 XP

5mos ago

Schedule:list - description with a closure?

@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');