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

[11.x] Fix an issue with missing controller class #50505

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

driesvints
Copy link
Member

When you delete the base controller from a Laravel v11 project, the make:controller command will not work any longer. This is because Composer doesn't forgets about the namespace automatically. Using a file_exists check instead of a class_exists check is an easy way to remedy this.

Fixes #50494

@taylorotwell taylorotwell merged commit d5f55e1 into 11.x Mar 13, 2024
29 checks passed
@taylorotwell taylorotwell deleted the fix-controller-make branch March 13, 2024 14:59
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.

Exception when try to create a Controller without the base abstract Controller
2 participants