修改基础管理中的基础内容
This commit is contained in:
@@ -51,14 +51,15 @@ class Firmstoreprojectsone extends Backend
|
||||
list($where, $sort, $order, $offset, $limit) = $this->buildparams();
|
||||
|
||||
$list = $this->model
|
||||
|
||||
->with(['firm'])
|
||||
->where($where)
|
||||
->order($sort, $order)
|
||||
->paginate($limit);
|
||||
|
||||
foreach ($list as $row) {
|
||||
$row->visible(['id','name']);
|
||||
|
||||
$row->visible(['firm']);
|
||||
$row->getRelation('firm')->visible(['full_name']);
|
||||
}
|
||||
|
||||
$result = array("total" => $list->total(), "rows" => $list->items());
|
||||
|
||||
Reference in New Issue
Block a user