Skip to content

Use of reserved keywords if present in route name #71

@TimKunze96

Description

@TimKunze96

Wayfinder Version

0.1.6

Laravel Version

12.15.0

PHP Version

8.4

Description

If a reserved keyword (like "default") is being used inside a route name (for example "default.login") the generated exports for the route will look similar to this:

const default = {
    login,
}

export default default

Steps To Reproduce

Add reserved keyword to any route name, run php artisan wayfinder:generate and inspect the related files

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