Example #1
0
File: DB.php Project: kijtra/db
 /**
  * Config getter
  *
  * @param string  $key  Config array key
  * @return mixed  If pass $key return one, else all config data
  */
 public function getConfig($key = null)
 {
     if (isset($key)) {
         if ($this->config->offsetExists($key)) {
             return $this->config->offsetGet($key);
         }
     } else {
         return $this->config->all();
     }
 }