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