joshwhatk / sentinel-guard
Laravel Guard for Cartalyst's Sentinel
v1.0.1
2016-04-11 14:23 UTC
Requires
- php: >=5.5.9
- cartalyst/sentinel: ^2.0
- laravel/framework: 5.2.*
Requires (Dev)
- phpunit/phpunit: ^5.2
This package is not auto-updated.
Last update: 2024-09-26 00:19:43 UTC
README
#Cent (为 无状态 Sentinel 实现的认证守护者) v1.0.1
安装
-
在您的
User
模型中扩展UserModel
use Joshwhatk\Cent\UserModel; class User extends UserModel { ...
-
在您的
config/app.php
中注册 CentServiceProviderJoshwhatk\Cent\CentServiceProvider::class,
-
在您的
config/auth.php
中将 API 驱动器更改为cent
'guards' => [ 'api' => [ 'driver' => 'cent', 'provider' => 'users', ], ],