protected function invalidProvider($provider)
    {
        if (is_null($provider)) {
            return true;
        }

        foreach (config('auth.guards') as $guardsConfiguration) {
            if ($guardsConfiguration['provider'] === $provider) {
                return false;
            }
        }

        return true;
    }
protected function invalidProvider($provider)
    {
        if (is_null($provider)) {
            return true;
        }

        foreach (config('auth.guards') as $guardsConfiguration) {
            if ($guardsConfiguration['provider'] === $provider) {
                return false;
            }
        }

        return true;
    }
protected function invalidProvider ( $ provider ) { if ( is_null ( $ provider ) ) { return true ; } foreach ( config ( 'auth.guards' ) as $ guardsConfiguration ) { if ( $ guardsConfiguration [ 'provider' ] === $ provider ) { return false ; } } return true ; }
Check if the given provider is not registered in the auth configuration file.

@param $provider

@return bool
Check if the given provider is not registered in the auth configuration file .