PHP code example of mrlaozhou / laravel-fool-guard
1. Go to this page and download the library: Download mrlaozhou/laravel-fool-guard library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mrlaozhou / laravel-fool-guard example snippets
composer
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'fool',
'provider' => 'users',
],
],
php artisan fool-guard:migrate
php artisan fool-guard:rollback
// 清除过期token
php artisan fool-guard:clearStale