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: 2025-02-13 02:06:45 UTC
README
#Cent (An Auth Gaurd Implementation for stateless Sentinel) v1.0.1
Installation
-
Extend
UserModel
in yourUser
modeluse Joshwhatk\Cent\UserModel; class User extends UserModel { ...
-
Register the CentServiceProvider in your
config/app.php
Joshwhatk\Cent\CentServiceProvider::class,
-
Change the api driver to
cent
in yourconfig/auth.php
'guards' => [ 'api' => [ 'driver' => 'cent', 'provider' => 'users', ], ],