gistfile1.txt public function map(Router $router) { // $router-group(['namespace' = $this-namespace], function ($router) { // require app_path('Http/routes.php'); // }); $router-group(['namespace' = $this-namespace], function ($router) { //
public function map(Router $router) { // $router->group(['namespace' => $this->namespace], function ($router) { // require app_path('Http/routes.php'); // }); $router->group(['namespace' => $this->namespace], function ($router) { // require app_path('Http/routes.php'); foreach (glob(app_path('Http//Routes') . '/*.php') as $file) { // $this->app->make('App\\Http\\Routes\\' . basename($file, '.php'))->map($router); $list = explode('/',$file); require app_path('Http//Routes//') . $list[count($list)-1]; } }); }