#Cent (An Auth Gaurd Implementation for stateless Sentinel) v1.0.1
-
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', ], ],