$router->get('/', function () use ($router) { return config('options.author'); }); $router->get('/user/{user_id}', function($user_id) { return $user_id; }); $router->group(['namespace' => 'Admin',"prefix"=>'admin'], function($router) { $router->get('user/info', "UserController@info"); });