joshwhatk / sentinel-guard
Laravel Guard for Cartalyst's Sentinel
Installs: 54
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 2
Open Issues: 4
pkg:composer/joshwhatk/sentinel-guard
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-10-09 05:21: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', ], ],