public static function getUserProvider(Authenticatable $user)
    {
        foreach (config('auth.providers') as $provider => $config) {
            if ($user instanceof $config['model']) {
                return $provider;
            }
        }

        throw MissingConfigException::provider($user);
    }
public static function getUserProvider(Authenticatable $user)
    {
        foreach (config('auth.providers') as $provider => $config) {
            if ($user instanceof $config['model']) {
                return $provider;
            }
        }

        throw MissingConfigException::provider($user);
    }
public static function getUserProvider ( Authenticatable $ user ) { foreach ( config ( 'auth.providers' ) as $ provider => $ config ) { if ( $ user instanceof $ config [ 'model' ] ) { return $ provider ; } } throw MissingConfigException :: provider ( $ user ) ; }
Get the user provider on configs.

@param  Authenticatable $user
@return string|null
@throws MissingConfigException
Get the user provider on configs .