Skip to content

[5.1] Console generator commands don’t use correct namespace #8997

@martinbean

Description

@martinbean

I’ve created a Laravel 5.1 application to check out the new version. I appreciate it’s still in development, but I’m noticed an issue with the make: console commands: they don’t insert the correct (full) namespace into new files.

I set my application namespace to YourFightSite\OnDemand using app:name. I then used make:model to create a model, but instead of using the full namespace, it’s instead just inserting YourFightSite (and omitting the OnDemand portion).

I haven’t observed this behavior in any of my up-to-date 5.0.x Laravel applications, so can safely say this is a 5.1-specific issue.

Are there any gotchas I should know of when using nested namespaces? Or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions