lundi 11 juin 2018

route not defined error even after changing default route in the unauthenticated method using laravel 5.6

this is the handler class and i have override the method for guest protected function unauthenticated($request, AuthenticationException $exception) { return $request->expectsJson() ? response()->json(['message' => $exception->getMessage()], 401) : redirect()->guest(route('admin')); }

my routes file has these routes that i want to reach Route::get('admin','Admin\AdminController@createAdminform'); Route::post('admin','Admin\AdminController@adminLogin');



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire