public function getProviders($provider)
    {
        $name = \is_string($provider) ? $provider : \get_class($provider);

        return Arr::where($this->loadedProviders, function ($value) use ($name) {
            return $value instanceof $name;
        });
    }
public function getProviders($provider)
    {
        $name = \is_string($provider) ? $provider : \get_class($provider);

        return Arr::where($this->loadedProviders, function ($value) use ($name) {
            return $value instanceof $name;
        });
    }
public function getProviders ( $ provider ) { $ name = \ is_string ( $ provider ) ? $ provider : \ get_class ( $ provider ) ; return Arr :: where ( $ this -> loadedProviders , function ( $ value ) use ( $ name ) { return $ value instanceof $ name ; } ) ; }
Get the registered service provider instances if any exist.

@param  \Illuminate\Support\ServiceProvider|string  $provider

@return array
Get the registered service provider instances if any exist .