Route::domain('{account}.myapp.com')->group(function () {
Route::get('/', function ($account) {
dd("Cant hit this area");
});
Route::get('/test', function ($account) {
dd("No problem reaching this area");
});
});
When I visit my subdomain e.g. test.myapp.com it won't hit that DD but if say I do a /test and visit it, it would work.
I tried doing Route::get(' ' too , leaving it empty but it just wouldn't catch the base subdomain.
Ref : https://laravel.com/docs/5.8/routing#route-group-sub-domain-routing
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2PoaQ2h
via IFTTT
Aucun commentaire:
Enregistrer un commentaire