I'm new to using Laravel 8. In previous Laravel version 7, we can pass subdomain name with this way
Route::group( [ 'domain' => '{admin}.example.com' ], function () {
Route::get('/index', 'HomeController@index($account)' );
}
But, in Laravel 8 structure code to call Controller was changed like this.
Route::domain('{admin}.example.com')->group(function () {
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
});
I've been looking for the docs but have not found them. Can you show me docs or helping me to send / passing subdomain from web.php to Controller