You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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 examplephp 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
toApp/Views/Components/Book
.Does it make sense to implement this constraint in the
make:component
command, making the View subfolder namelcfirst
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
toApp/Views/Components/Book
and retry.The
dd()
is fired.The text was updated successfully, but these errors were encountered: