public static function getProviderGuard($provider, Authenticatable $user)
    {
        foreach (config('auth.guards') as $guard => $content) {
            if ($content['driver'] == 'passport' && $content['provider'] == $provider) {
                return $guard;
            }
        }

        throw MissingConfigException::guard($user);
    }
public static function getProviderGuard($provider, Authenticatable $user)
    {
        foreach (config('auth.guards') as $guard => $content) {
            if ($content['driver'] == 'passport' && $content['provider'] == $provider) {
                return $guard;
            }
        }

        throw MissingConfigException::guard($user);
    }
public static function getProviderGuard ( $ provider , Authenticatable $ user ) { foreach ( config ( 'auth.guards' ) as $ guard => $ content ) { if ( $ content [ 'driver' ] == 'passport' && $ content [ 'provider' ] == $ provider ) { return $ guard ; } } throw MissingConfigException :: guard ( $ user ) ; }
Get the guard of specific provider to `passport` driver.

@param  string $provider
@param Authenticatable $user
@return string
@throws MissingConfigException
Get the guard of specific provider to passport driver .