PHP code example of xcoorp / laravel-passport-introspection

1. Go to this page and download the library: Download xcoorp/laravel-passport-introspection 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/ */

    

xcoorp / laravel-passport-introspection example snippets


use Laravel\Passport\Passport;

Passport::tokensCan([
    'introspect' => 'Introspect tokens',
]);

public function boot()
{
    PassportIntrospection::ignoreRoutes();
}