I solved the problem by creating a Provider with the same Middleware identification logic, and when accessing the main domain it dynamically loads the routes of the main domain.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community