我已将Sentinel软件包安装到我的laravel Web应用程序中。 Sentinel用户登录和激活工作正常。 问题是我已将miiddle ware添加到路线中,如下所示
Route::group(['middleware' => ['track', 'sentry.auth']], function () {
Route::Controller('state', 'StateController');
});
但我得到了那个错误
**Class Sentinel\Middleware\SentryAuth does not exist**
我检查了kernel.php,发现中间件已经存在
'sentry.auth' => \Sentinel\Middleware\SentryAuth::class,
'sentry.admin' => \Sentinel\Middleware\SentryAdminAccess::class,
'sentry.member' => \Sentinel\Middleware\SentryMember::class,
'sentry.guest' => \Sentinel\Middleware\SentryGuest::class,