8000 Lowercase subfolder names in View/Components generated by "artisan make:component" not recognised on Linux · Issue #55713 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

Lowercase subfolder names in View/Components generated by "artisan make:component" not recognised on Linux #55713

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

Open
BhSimon opened this issue May 12, 2025 · 1 comment

Comments

@BhSimon
Copy link
BhSimon commented May 12, 2025

Laravel Version

12.x

PHP Version

8.2

Database Driver & Version

No response

Description

When making a components with the php artisan make:component command, if the provided component name contains a lowercase subfolder, for example php artisan make:component book/Form, the created subfolder name is not recognised on a production Linux host.

The solution was to change App/Views/Components/book to App/Views/Components/Book.

Does it make sense to implement this constraint in the make:component command, making the View subfolder name lcfirst on creation?

Steps To Reproduce

Run command:

php artisan make:component book/Form

Place dd(); in the constructor of Form.php.
Deploy to Linux host with apache2.

The dd() is not fired.

Rename App/Views/Components/book to App/Views/Components/Book and retry.

The dd() is fired.

Copy link

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0