$router->group(['domain' => '{team}.domain.com'], function($router) { //gain access to $team here without having to use $router->get(... });
Please note that all pasted data is publicly available.