protected function serviceProviderIsRegistered($class_name)
    {
        if (\method_exists($this->app, 'getLoadedProviders')) {
            $loaded = \array_keys($this->app->getLoadedProviders());

            return \in_array($class_name, $loaded, true);
        }

        return false;
    }
protected function serviceProviderIsRegistered($class_name)
    {
        if (\method_exists($this->app, 'getLoadedProviders')) {
            $loaded = \array_keys($this->app->getLoadedProviders());

            return \in_array($class_name, $loaded, true);
        }

        return false;
    }
protected function serviceProviderIsRegistered ( $ class_name ) { if ( \ method_exists ( $ this -> app , 'getLoadedProviders' ) ) { $ loaded = \ array_keys ( $ this -> app -> getLoadedProviders ( ) ) ; return \ in_array ( $ class_name , $ loaded , true ) ; } return false ; }
Make check - service provider is loaded or not?

@param string $class_name

@return bool
Make check - service provider is loaded or not?