Skip to content

Generator Prefixes should use different string helpers #1067

Open
@billysmithers

Description

@billysmithers

The GeneratorPrefixes class for merging namespace prefix is using Str::title it should be Str::studly.

The route prefix for merging is using Str::camel, IMHO it should be Str::kebab - I would expect semantic URLs to be in kebab case not in camel case.

The view prefix for merging is using Str::snake it should be Str::kebab in line with Laravel convention I would expect these to be in kebab case also.

I'm happy to submit a PR as I have written a proof of concept to verify the changes do as would be expected.

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