public static function availableProviders()
    {
        $settings = Settings::first();

        return collect(static::providers())->filter(function ($value) use ($settings) {
            $ci = $value.'_client_id';
            $cs = $value.'_client_secret';

            return $settings->$ci && $settings->$cs;
        })->toArray();
    }
public static function availableProviders()
    {
        $settings = Settings::first();

        return collect(static::providers())->filter(function ($value) use ($settings) {
            $ci = $value.'_client_id';
            $cs = $value.'_client_secret';

            return $settings->$ci && $settings->$cs;
        })->toArray();
    }
public static function availableProviders ( ) { $ settings = Settings :: first ( ) ; return collect ( static :: providers ( ) ) -> filter ( function ( $ value ) use ( $ settings ) { $ ci = $ value . '_client_id' ; $ cs = $ value . '_client_secret' ; return $ settings -> $ ci && $ settings -> $ cs ; } ) -> toArray ( ) ; }
Returns all the available providers.

@return array
Returns all the available providers .