Answers for "subdomain laravel 8"

PHP
2

laravel get subdomain

Route::group(array('domain' => '{subdomain}.project.dev'), function() {

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

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

});
Posted by: Guest on June-07-2021

Browse Popular Code Answers by Language