This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Lowercase subfolder names in View/Components generated by "artisan make:component" not recognised on Linux #55713
Labels
You can continue the conversation there. Go to discussion →
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: