Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: [inertia] Allow parsing of custom Pages path #151

Closed
francoism90 opened this issue Jan 6, 2025 · 2 comments · May be fixed by #154
Closed

[Feature]: [inertia] Allow parsing of custom Pages path #151

francoism90 opened this issue Jan 6, 2025 · 2 comments · May be fixed by #154

Comments

@francoism90
Copy link

francoism90 commented Jan 6, 2025

Feature Description

I've overruled the page_paths path in config/inertia.php:

'testing' => [
    'ensure_pages_exist' => true,

    'page_paths' => [
        resource_path('js/pages'),
    ],
],

As you can see, I'm using a lower case, instead of the default Pages.

Looking at the source, it seems it replaces Pages by a hardcoded value:

"{,**/}{resources/js/Pages}/{*,**/*}",

It would be great if you could customize the path (maybe also for multitenancy), or that the parser uses a glob pattern (if that is possible).

Thanks!

@ncphillips
Copy link

We have the same problem in our codebase.

@joetannenbaum
Copy link
Collaborator

This should be fixed in v0.1.16, please re-open if you are still encountering this issue.

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

Successfully merging a pull request may close this issue.

3 participants