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

[10.x] Make inherited relations and virtual attributes appear in model:show command #48800

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

sebj54
Copy link
Contributor

@sebj54 sebj54 commented Oct 23, 2023

Closes #48798

I did not find any existing test related to this feature. Feel free to tell me if I missed anything, because it's my first PR to the framework

@driesvints driesvints changed the title Make inherited relations and virtual attributes appear in model:show command [10.x] Make inherited relations and virtual attributes appear in model:show command Oct 23, 2023
@driesvints driesvints requested a review from jessarcher October 23, 2023 14:39
Copy link
Member

@jessarcher jessarcher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sebj54!

I've tested it locally, and it works great!

Performance is part of why we want to ignore methods on the Model class, but it's mostly because there are methods on the Model class that call other relationship methods (e.g. morphedByMany calls morphToMany), which would trigger a false positive.

@taylorotwell taylorotwell merged commit b52de33 into laravel:10.x Oct 24, 2023
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.

Artisan's model:show command does not list inherited relations
3 participants