Answers for "how to subdomain in 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 subdomain in laravel"

Browse Popular Code Answers by Language