Skip to content

php artisan make:component Namespace/Subcomponent creates wrong render function #32155

@PHPGuus

Description

@PHPGuus

Laravel: 7.3.0
PHP: 7.3.16
Database Driver & Version: N/A

Description

Even though #32009 and #32030 mention that this is fixed, it isn't.

When running php artisan make:component Namespace/Subcomponent the generated render() function returns view('components.test') as opposed to view('components.namespace.test'). The blade file is created in the correct location "resources/views/components/namespace/test.blade.php".

I am attempting a PR for this against the 7.x branch.

###Steps to reproduce
php artisan make:component Namespace/Test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions