public function purge($connection = null)
    {
        $connection = $connection ?? $this->tenantName();

        $this->db->purge(
            $connection
        );

        $this->config->set(
            sprintf('database.connections.%s', $connection),
            []
        );
    }
public function purge($connection = null)
    {
        $connection = $connection ?? $this->tenantName();

        $this->db->purge(
            $connection
        );

        $this->config->set(
            sprintf('database.connections.%s', $connection),
            []
        );
    }
public function purge ( $ connection = null ) { $ connection = $ connection ?? $ this -> tenantName ( ) ; $ this -> db -> purge ( $ connection ) ; $ this -> config -> set ( sprintf ( 'database.connections.%s' , $ connection ) , [ ] ) ; }
Purges the current tenant connection.
@param null $connection
Purges the current tenant connection .