📅  最后修改于: 2022-03-11 14:54:39.407000             🧑  作者: Mango
Route::group(array('domain' => '{subdomain}.project.dev'), function() {
Route::get('foo', function($subdomain) {
// Here I can access $subdomain
});
$subdomain = Route::input('subdomain');
});