Skip to content

[13.x] Fix lifecycle deferred event methods#60190

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
cosmastech:fix-scheduler-grouping
May 19, 2026
Merged

[13.x] Fix lifecycle deferred event methods#60190
taylorotwell merged 1 commit into
laravel:13.xfrom
cosmastech:fix-scheduler-grouping

Conversation

@cosmastech
Copy link
Copy Markdown
Contributor

I did not realize that calls to PendingEventAttributes were intercepted by Schedule.

This should now allow for:

Schedule::before(function (Event $event) {
    \Log::info("Starting command: {$event->command}");
})->group(function (Schedule $schedule) {
    $schedule->command('inspire')->onOneServer();
});

@cosmastech cosmastech changed the title [13.x] Fix lifecycle grouping [13.x] Fix lifecycle deferred event methods May 19, 2026
@taylorotwell taylorotwell merged commit e8043a0 into laravel:13.x May 19, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants