Answers for "how to access subdomain iin laravel"

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

Code answers related to "how to access subdomain iin laravel"

Browse Popular Code Answers by Language