Route::group(['domain' => '{subdomain}.'bestinterviewquestion.com'], function() {
    Route::get('/', 'HomeController@index');
});

BY Best Interview Question ON 13 Jan 2023