Illuminate\Database\Connection::getConfig PHP Метод

getConfig() публичный Метод

Get an option from the configuration options.
public getConfig ( string $option ) : mixed
$option string
Результат mixed
    public function getConfig($option)
    {
        return Arr::get($this->config, $option);
    }

Usage Example

 /**
  * Append the character set specifications to a command.
  *
  * @param  string  $sql
  * @param  \Illuminate\Database\Connection  $connection
  * @return string
  */
 protected function compileCreateEncoding($sql, Connection $connection)
 {
     if (!is_null($charset = $connection->getConfig('charset'))) {
         $sql .= ' default character set ' . $charset;
     }
     if (!is_null($collation = $connection->getConfig('collation'))) {
         $sql .= ' collate ' . $collation;
     }
     return $sql;
 }
All Usage Examples Of Illuminate\Database\Connection::getConfig