/** * We will get all column schema from database. * * @return mixed */ public function getColumns() { $table = $this->table->connect($this->database, Inflector::tabilize($this->model)); return $table->{__FUNCTION__}(); }
/** * We will get all column schema from database. * * @return mixed */ private function getColumns() { $table = $this->table->connect($this->database, Inflector::tabilize($this->tableName)); return $table->getColumns(); }