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

Bug ShowModelCommand not guessing policy #47043

Merged
merged 3 commits into from
May 12, 2023
Merged

Conversation

dorkster100
Copy link
Contributor

Currently the command defines it`s own method for resolving policies, which does not take into account the Policy guessing feature of Laravel. I suggest we reuse Gate own method for this.

@taylorotwell taylorotwell merged commit 82875a1 into laravel:10.x May 12, 2023
milwad-dev pushed a commit to milwad-dev/framework that referenced this pull request May 12, 2023
* Fix: ShowModelCommand not guessing policy

* fix style

* Update src/Illuminate/Database/Console/ShowModelCommand.php

Co-authored-by: Jess Archer <[email protected]>

---------

Co-authored-by: Deniss Levskoi <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
Co-authored-by: Jess Archer <[email protected]>
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.

3 participants