Open usmanibrahim74 opened 21 hours ago
Don't think this has anything to do with Inertia? Inertia is just a connecting glue between frontend and backend. Routing would still be registered by the backend (Laravel), Inertia doesn't interfere there in any way. The only thing that wouldn't be possible is navigating between domains through Inertia requests (but navigating between different domains likely wouldn't really work anyway, as sessions wouldn't be shared between different domains)
I have Laravel 11 setup with inertia, vue and Multitenant setup using TenancyForLaravel Package. Here is routing code for multitenant setup. Its working fine except for the routes the are limited to central domain only.
here are example routes
The Roles routes are common in both sides. but tenants and feedbacks routes are only central domain routes. Problem is for the central domain routes only the last domain in the list of central domains in
config/tenancy.php
work if accessed but if I access through prior domain, links shows last domain in the list instead of the domain through I access. I have a work around to set a central domain in .env file and place it in the list at last. I just want to highlight the issue.