public function registerProvider($provider){
        $providers = (array) $provider;

        foreach($providers as $provider){
            $this->app()['config']->add('general.providers', $provider);
        }
    }
public function registerProvider($provider){
        $providers = (array) $provider;

        foreach($providers as $provider){
            $this->app()['config']->add('general.providers', $provider);
        }
    }
public function registerProvider ( $ provider ) { $ providers = ( array ) $ provider ; foreach ( $ providers as $ provider ) { $ this -> app ( ) [ 'config' ] -> add ( 'general.providers' , $ provider ) ; } }
You can register your providers with string or array data.

@param array|string $provider
@return $this
You can register your providers with string or array data .