src/PassportServiceProvider.php
protected function registerGuard()
    {
        Auth::extend('passport', function ($app, $name, array $config) {
            return tap($this->makeGuard($config), function ($guard) {
                $this->app->refresh('request', $guard, 'setRequest');
            });
        });
    }
protected function registerGuard()
    {
        Auth::extend('passport', function ($app, $name, array $config) {
            return tap($this->makeGuard($config), function ($guard) {
                $this->app->refresh('request', $guard, 'setRequest');
            });
        });
    }
protected function registerGuard ( ) { Auth :: extend ( 'passport' , function ( $ app , $ name , array $ config ) { return tap ( $ this -> makeGuard ( $ config ) , function ( $ guard ) { $ this -> app -> refresh ( 'request' , $ guard , 'setRequest' ) ; } ) ; } ) ; }
Register the token guard.

@return void
Register the token guard .