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

Chop PHP extension when passed to make commands #51842

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

jasonmccreary
Copy link
Contributor

I mistakenly add the .php extension every so often when using make commands and it's a tiny, tiny papercut to see the double extension created. Having Laravel just "do the right thing" can be yet another one of its wonder DX improvements.

Before

php artisan make:controller UserController.php
# Controller [app/Http/Controllers/UserController.php.php] created successfully.

After

php artisan make:controller UserController.php
# Controller [app/Http/Controllers/UserController.php] created successfully.

@taylorotwell taylorotwell merged commit 9619f56 into laravel:11.x Jun 19, 2024
30 checks passed
@jasonmccreary jasonmccreary deleted the chop-extension branch June 19, 2024 16:02
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