mrlaozhou/laravel-fool-guard

There is no license information available for the latest version (v3.0) of this package.

v3.0 2020-10-15 07:12 UTC

This package is not auto-updated.

Last update: 2024-04-12 01:14:10 UTC


README

composer require mrlaozhou/laravel-fool-guard

config

更改config/auth.php

'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        'api' => [
            'driver' => 'fool',
            'provider' => 'users',
        ],
    ],

Commands

php artisan fool-guard:migrate 
php artisan fool-guard:rollback
//  清除过期token
php artisan fool-guard:clearStale