Currently I have:
Route::domain('{subdomain}.alfa.example.com')->group(function () {
Route::get('/tet', function ($subdomain) {
dd($subdomain);
});
})
I want to be able to use a route that will respect the following criteria:
Before asking, I have tried to use ->where('subdomain', '(.*)'); but with no effect.
Route::domain('{subdomain}.alfa.example.com')->group(function () {
Route::get('/tet', function ($subdomain) {
dd($subdomain);
})->where('subdomain', '(.*)');
});
After all I have used ->where('subdomain', '(.*)')