【发布时间】:2016-05-15 14:36:25
【问题描述】:
我按照官方的JWT-Auth安装https://github.com/tymondesigns/jwt-auth/wiki/Installation.
现在我的控制器中有一个中间件:
$this->middleware('jwt-auth', ['only' => ['postChange', 'postChoose']]);
我还在config/app.php 的提供者数组中添加了Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class
但是,当我向 API 发出请求时,我收到以下错误消息:
ReflectionException in Container.php line 737:
Class jwt-auth does not exist
任何帮助都将不胜感激。
【问题讨论】:
标签: php laravel-5.1 jwt