// 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');
});
Last active
December 12, 2015 13:27
-
-
Save dlimars/b86ae6a085bb47eaf03c to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment