I would like to create a site that has multiple subdomains, each subdomain is an integral independent Laravel application. There is only one folder for the site.
Demontration
www.example.com (the main website)
blog.example.com (An independent blog)
music.example.com (Application of Independent Music)
I try to do this
Route::group(['domain' => 'dcolsay.dev'], function () {
Route::get('/', function () {
return view('welcome');
});
});
Route::group(['domain' => 'blog.dcoslay.dev'], function () {
Route::get('/', function() {
return view('blog::index');
});
});
I use PingPong - Module https://github.com/pingpong-labs/modules
The first route work but the second i have this error
NotFoundHttpException in RouteCollection.php line 161: