Skip to content

Instantly share code, notes, and snippets.

@dlimars
Last active December 12, 2015 13:27
Show Gist options
  • Save dlimars/b86ae6a085bb47eaf03c to your computer and use it in GitHub Desktop.
Save dlimars/b86ae6a085bb47eaf03c to your computer and use it in GitHub Desktop.
// Rotas que pertencem a um subdominio deverão ser registradas dentro do grupo
// Rotas para subdominio devem sempre ser declaradas antes das outras
Route::group(['domain' => '{account}.' . env('APP_DOMAIN')], function () {
    Route::get('do-something', function ($account) {
        //
    });
});

// As demais rotas, registra-se normal
Route::get('/', function(){
    return view('welcome');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment