Skip to content

Use of reserved keywords if present in route name #71

Open
@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

Activity

linked a pull request that will close this issue on May 22, 2025
crazynds

crazynds commented on Jun 22, 2025

@crazynds

I had the same issue when using the word 'export'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @crazynds@TimKunze96

      Issue actions

        Use of reserved keywords if present in route name · Issue #71 · laravel/wayfinder