src/Support/DriverManager.php
public function driver(?string $name = null)
    {
        $name = $name ?: $this->getDefaultDriver();

        return $this->drivers[$name] = $this->get($name);
    }
public function driver(?string $name = null)
    {
        $name = $name ?: $this->getDefaultDriver();

        return $this->drivers[$name] = $this->get($name);
    }
public function driver ( ? string $ name = null ) { $ name = $ name ? : $ this -> getDefaultDriver ( ) ; return $ this -> drivers [ $ name ] = $ this -> get ( $ name ) ; }
Get a driver instance by name.

@param  string|null  $name
@return mixed
Get a driver instance by name .