i'm start to programing ApiRest with JWT. The login route is good, but the router in group "middleware jwt.auth" not funk.
Error:
Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Events\Dispatcher::fire()
My code:
Route::group(['namespace' => 'Api'], function(){
Route::get('user/login', 'AuthController@login');
Route::group(['middleware' => ['jwt.auth']], function() {
Route::get('auth/me', 'AuthController@me');
});
});
Help me pls.
I'm testing the router api with Postman
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire