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

[1.x] Allows multiple Folio mounted paths per URI #67

Merged
merged 6 commits into from
Aug 4, 2023

Conversation

nunomaduro
Copy link
Member

This pull request allows the usage of multiple Folio route registrations per project URI, here is an example of how to use it:

// Domain examples...
Folio::domain('dashboard.example.com')->path('resources/pages/dashboard');
Folio::domain('example.com')->path('resources/pages/landing');

// Middleware examples...
Folio::route('/app')->path('resources/pages/trial-user-pages')
    ->middleware([/** Trial Middleware */]
Folio::route('/app')->path('resources/pages/subscribed-user-pages')
    ->middleware([/** Subscribed Middleware */]

@nunomaduro nunomaduro changed the title [1.x] Allows multiple Folio paths per URI [1.x] Allows multiple Folio mounted paths per URI Aug 4, 2023
@taylorotwell taylorotwell merged commit c57e07b into master Aug 4, 2023
6 checks passed
@taylorotwell taylorotwell deleted the feat/multiple-folio-paths branch August 4, 2023 16:13
@winavin
Copy link

winavin commented Dec 17, 2023

    Folio::path(resource_path("views/pages/"));
    Folio::domain('domain1.test')->path(resource_path("views/pages/tenants/domain1"));
    Folio::domain('domain2.test')->path(resource_path("views/pages/tenants/domain2"));
    
    
    only one domain1 is working. another is not working. direct paths are working

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.

3 participants