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

Code answers related to "how to work with subdomain in laravel 8"

Browse Popular Code Answers by Language