Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Eloquent Model Observers in model:show command #44884

Merged
merged 14 commits into from Nov 9, 2022

Conversation

mike-healy
Copy link
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
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.

None yet

2 participants