Route: get (& #039; & #039;, function () {code ...}}); route: group ([& #039; domain & #039; & amp; gt; & #039; dashboard. homestead. app & #039;], function () {code ...}}); dashboard has been configured in homestead and hosts. homestead. app. However, when you access dashb... Route: get ('/', function (){
return view('home.welcome');
});
Route: group (['domain '=> 'dashboard. homestead. app'], function (){
Route::get('/', function () { return 'hello,world!';});
});
You have configured dashboard. homestead. app in homestead and hosts. However, when you access the dashboard. homestead. app, the preceding route content (home. welcome) is displayed ).
However
Route: group (['domain '=> 'dashboard. homestead. app'], function (){
Route::get('/test', function () { return 'hello,world!';});
});
Access dashboard. homestead. app/test is a normal hello world.
Why? Can't you directly access dashboard. homestead. app to get hello world?
Reply content:
Route: get ('/', function (){
return view('home.welcome');
});
Route: group (['domain '=> 'dashboard. homestead. app'], function (){
Route::get('/', function () { return 'hello,world!';});
});
You have configured dashboard. homestead. app in homestead and hosts. However, when you access the dashboard. homestead. app, the preceding route content (home. welcome) is displayed ).
However
Route: group (['domain '=> 'dashboard. homestead. app'], function (){
Route::get('/test', function () { return 'hello,world!';});
});
Access dashboard. homestead. app/test is a normal hello world.
Why? Can't you directly access dashboard. homestead. app to get hello world?