laravel - NotFoundHttpException in RouteCollection.php -


i use laravel 5!

in routes.php file have following request check admin requests in url:

 if (request::is('admin/*'))  {      require __dir__.'/admin_routes.php';  } 

in case in corresponding admin_routes.php file should return correct controller have:

 route::group(['prefix' => 'admin', 'middleware' => 'auth'], function() {       #admin dashboard      route::get('dashboard', 'admin\dashboardcontroller@index');  });  

i cleared route cache (php artisan route:clear) , error message: notfoundhttpexception in routecollection.php line 145 . ideas wrong? thank you

put routes in 1 file, since documentation others aswell. should kept simple can be.

then use route groups.

why need include other files?


Comments

Popular posts from this blog

How to group boxplot outliers in gnuplot -

cakephp - simple blog with croogo -