$router->group(['domain' => '{team}.domain.com'], function($router) { //gain access to $team here without having to use $router->get(... });