1. Go to this page and download the library: Download glesys/butler-auth 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/ */
// Delete access token by ID
AccessToken::find($id)->delete();
// Delete all tokens for a consumer
$consumer->tokens->map->delete();
// If "butler" is configured as your default guard
Route::view('/protected', 'protected')->middleware('auth');
// Or specify the guard
Route::view('/protected', 'protected')->middleware('auth:butler');
sh
composer an vendor:publish --tag=butler-auth-migrations
php artisan migrate
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.