📜  laravel 获取子域 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:39.407000             🧑  作者: Mango

代码示例1
Route::group(array('domain' => '{subdomain}.project.dev'), function() {

    Route::get('foo', function($subdomain) {
        // Here I can access $subdomain
    });

    $subdomain = Route::input('subdomain');

});