【发布时间】:2017-11-21 08:03:44
【问题描述】:
试图在我的 json(laravel 项目)中获取 Column 类型,但不工作?,谁能看看有什么问题?
protected function getType()
{
return Schema::getColumnType($this->builder->getModel()->getTable() , $this->getUpdatableColums());
}
enter code here
protected function getRecords(Request $request)
{
// return $this->builder->limit($request->limit)->orderBy('id', 'asc')->get($this->getDisplayableColums());
return $this->builder
->limit($request->limit)
->orderBy('id', 'asc')
->get($this->getDisplayableColums())
->getType();
}
【问题讨论】:
标签: mysql json laravel-5 schema