Route::get ('/', function () {
return view('home.welcome');
});
Route::group ([' domain ' = ' dashboard.homestead.app '], function () {
Route::get('/', function () { return 'hello,world!';});
});
Dashboard.homestead.app has been configured in the homestead and hosts. However, when accessing Dashboard.homestead.app, the contents of the above route (Home.welcome) are still displayed.
But if it's written like this
Route::group ([' domain ' = ' dashboard.homestead.app '], function () {
Route::get('/test', function () { return 'hello,world!';});
});
Access Dashboard.homestead.app/test is the normal display of Hello world.
Why is this? Can't directly access Dashboard.homestead.app 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!';});
});
Dashboard.homestead.app has been configured in the homestead and hosts. However, when accessing Dashboard.homestead.app, the contents of the above route (Home.welcome) are still displayed.
But if it's written like this
Route::group ([' domain ' = ' dashboard.homestead.app '], function () {
Route::get('/test', function () { return 'hello,world!';});
});
Access Dashboard.homestead.app/test is the normal display of Hello world.
Why is this? Can't directly access Dashboard.homestead.app get Hello world?