This is my problem..I define in RouteServiceProvider.php this map implementation:
public function map(Router $router, Request $request)
{
$locale = $request->segment(1);
$this->app->setLocale($locale);
$router->group(['prefix' => '{lang}'], function($router) {
require app_path('Http/routes.php');
});
}
In app/rotes.php i also define a route group
Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function (){
//code
);
Now when i try to access to admin/xxx it show me this exception
NotFoundHttpException in RouteCollection.php line 161:
in RouteCollection.php line 161
I try to put the definition of the first route group in routes.php but that didn't work..
How can i solve the problem?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/21Azugi
via IFTTT
Aucun commentaire:
Enregistrer un commentaire