joshwhatk / sentinel-guard by joshwhatk

Laravel Guard for Cartalyst's Sentinel
54
4
2
Package Data
Maintainer Username: joshwhatk
Maintainer Contact: joshwhatk@gmail.com (Joshua Friend)
Package Create Date: 2016-03-02
Package Last Update: 2021-04-29
Language: PHP
License: MIT
Last Refreshed: 2025-02-20 03:01:39
Package Statistics
Total Downloads: 54
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 4
Total Watchers: 2
Total Forks: 2
Total Open Issues: 4

#Cent (An Auth Gaurd Implementation for stateless Sentinel) v1.0.1

Installation

  • Extend UserModel in your User model

    use 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 your config/auth.php

    'guards' => [
        'api' => [
            'driver' => 'cent',
            'provider' => 'users',
        ],
    ],