Skip to content

Urls don't include the base if laravel not installed in root directory #115

@tinyfly

Description

@tinyfly

Wayfinder Version

0.1.12

Laravel Version

12.35.0

PHP Version

8.4.14

Description

I have Laravel installed in a v2 subdirectory. My local app_url is http://localhost:8081/v2/. None of the urls that wayfinder generates contain this v2 in the path. I've tried adding base: '/v2/' to the vite.config but that doesn't seem to matter to wayfinder. Perhaps a base option to the plugin would be appropriate or it can read from the .env app_url?

Steps To Reproduce

  • Install Laravel into a subdirectory with the vue starter kit and no auth scaffolding.
  • Create a test controller and view the generated wayfinder actions for it.

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