Skip to content

[9.x] Add Policies to Model Show Command - #45153

Merged
taylorotwell merged 3 commits into
laravel:9.xfrom
ahinkle:show-model-policies
Dec 2, 2022
Merged

[9.x] Add Policies to Model Show Command#45153
taylorotwell merged 3 commits into
laravel:9.xfrom
ahinkle:show-model-policies

Conversation

@ahinkle

@ahinkle ahinkle commented Dec 1, 2022

Copy link
Copy Markdown
Contributor

This PR adds registered policies to the artisan model:show command. This can be useful to see what policies are registered on a model.

Screen Shot 2022-11-30 at 10 09 29 PM

@ahinkle ahinkle changed the title Add Policies to Model Show Command [9.x] Add Policies to Model Show Command Dec 1, 2022
@ahinkle

ahinkle commented Dec 1, 2022

Copy link
Copy Markdown
Contributor Author

/cc @jessarcher

@taylorotwell

Copy link
Copy Markdown
Member

Since it's very atypical I think to have more than one policy per model (correct me if I'm wrong), should this be something we just put at the top ... just below "Table" maybe?

CleanShot 2022-12-01 at 09 47 14@2x

@taylorotwell
taylorotwell merged commit a9bf589 into laravel:9.x Dec 2, 2022
@ahinkle

ahinkle commented Dec 2, 2022

Copy link
Copy Markdown
Contributor Author

Agreed. Thanks for the code change. 👍

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