Skip to content

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

@BhSimon

Description

@BhSimon

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions