Skip to content

Allow users to create a Page hierarchy inside the Pages directory #1561

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

Closed
wants to merge 1 commit into from

Conversation

PHPGuus
Copy link

@PHPGuus PHPGuus commented Feb 8, 2025

This will support Inertia's advocated way of not constantly reloading the Layout component for Member Pages, for example.

Currently, the Jetstream-created Pages, while being adaptable, are loaded from the "Pages/Team/...vue" directory, for example. If one has an Inertia page resolve function that loads and applies a page's layout based on page name prefix (e.g. "Members/Teams/...vue") then the hardcoded paths in the src/Http/Controllers/Inertia/...Controller.php files will not be able to find the pages inside the subdirectories.

This change allows users to set a page prefix so that pages are loaded from the correct subdirectory.

The default value is an empty string.

…is will support Inertia's advocated way of not constantly reloading the Layout component for Member Pages, for example.
@taylorotwell
Copy link
Member

We are releasing our new starter kits in 2 weeks so would rather address there if needed.

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

Successfully merging this pull request may close these issues.

2 participants