laravel 5.8 hi I've added a new route file in routes directory with this name 'admin.php' session flash and errors validation don't work in this route file but in web.php session flash and errors of validation works well
this is map method in RouteServiceProvider
public function map()
{
$this->mapApiRoutes();
$this->mapWebRoutes();
$this->mapAdminRoutes();
}
mapAdminRoutes method
protected function mapAdminRoutes()
{
Route::prefix('admin')->middleware(['auth','admin'])
->namespace($this->namespace."\Admin")
->group(base_path('routes/admin.php'));
}
I don't use any middleware in admin.php routes
I Tried these deleting ->middleware(['auth','admin'])
in mapApiRoutes method
note:session flash and error validations of routes of admin.php work well in web.php
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2MaVJcz
via IFTTT
Aucun commentaire:
Enregistrer un commentaire