Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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');

});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #subdomain
ADD COMMENT
Topic
Name
4+5 =