samedi 7 novembre 2015

Class jwt-auth does not exist error when using middleware in Laravel 5.1

I followed the official JWT-Auth installation http://ift.tt/1PhjxHL.

I now have a middleware in my controller:

$this->middleware('jwt-auth', ['only' => ['postChange', 'postChoose']]);

I have also add Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class to providers array in config/app.php

However when I make a request to the API I get this error message:

ReflectionException in Container.php line 737:
Class jwt-auth does not exist

Any help at all will be appreciated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire