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

Error with model:show artisan command with model named "Event" #43289

Closed
stef686 opened this issue Jul 19, 2022 · 1 comment · Fixed by #43301
Closed

Error with model:show artisan command with model named "Event" #43289

stef686 opened this issue Jul 19, 2022 · 1 comment · Fixed by #43301

Comments

@stef686
Copy link

stef686 commented Jul 19, 2022

  • Laravel Version: 9.21.0
  • PHP Version: 8.1.1
  • Database Driver & Version: MySql

Description:

I have a model called Event. Running the new php artisan model:show Event command outputs an error:

image

Running php artisan model:show /Event works correctly.

Steps To Reproduce:

php artisan model:show Event

@jessarcher
Copy link
Member

Sorry about that @stef686! There was an issue with any models that share the same name as an aliased facade. #43301 address this.

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 a pull request may close this issue.

2 participants