src/IlluminateRegistry.php
public function purgeManager($name = null)
    {
        $name = $name ?: $this->getDefaultManagerName();
        $this->closeManager($name);

        unset($this->managers[$name]);
        unset($this->connections[$name]);
    }
public function purgeManager($name = null)
    {
        $name = $name ?: $this->getDefaultManagerName();
        $this->closeManager($name);

        unset($this->managers[$name]);
        unset($this->connections[$name]);
    }
public function purgeManager ( $ name = null ) { $ name = $ name ? : $ this -> getDefaultManagerName ( ) ; $ this -> closeManager ( $ name ) ; unset ( $ this -> managers [ $ name ] ) ; unset ( $ this -> connections [ $ name ] ) ; }
Purge a named object manager.

This method can be used if you wish to close an object manager manually, without opening a new one.
This can be useful if you wish to open a new manager later (but maybe with different settings).

@param string|null $name The object manager name (null for the default one).
Purge a named object manager .