Skip to content

Include Eloquent Model Observers in model:show command - #44884

Merged
taylorotwell merged 14 commits into
laravel:9.xfrom
mike-healy:9.x
Nov 9, 2022
Merged

Include Eloquent Model Observers in model:show command#44884
taylorotwell merged 14 commits into
laravel:9.xfrom
mike-healy:9.x

Conversation

@mike-healy

Copy link
Copy Markdown
Contributor

(@jessarcher Resubmitting PR 43470 as the suggested code changes don't seem to sync on closed PRs)

This PR builds on the new artisan model:show command to also list Model Observers. They could be handy to see on the Model information as it's not always obvious that a Model is being observed.

It handles cases where multiple observers are attached to an action.

console output listing Model Observers

@taylorotwell
taylorotwell merged commit bef6d2a into laravel:9.x Nov 9, 2022
@taylorotwell

Copy link
Copy Markdown
Member

Thanks!

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