迁移
This commit is contained in:
parent
8f73948223
commit
c5fb6f9409
@ -86,7 +86,9 @@ class User extends CatchController
|
|||||||
|
|
||||||
$this->user->attachRoles($request->param('roles'));
|
$this->user->attachRoles($request->param('roles'));
|
||||||
|
|
||||||
|
if ($request->param('jobs')) {
|
||||||
$this->user->attachJobs($request->param('jobs'));
|
$this->user->attachJobs($request->param('jobs'));
|
||||||
|
}
|
||||||
|
|
||||||
return CatchResponse::success('', '添加成功');
|
return CatchResponse::success('', '添加成功');
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,7 @@ class Attachments extends CatchModel
|
|||||||
{
|
{
|
||||||
return $this->order('id', 'desc')
|
return $this->order('id', 'desc')
|
||||||
->catchSearch()
|
->catchSearch()
|
||||||
|
->catchOrder()
|
||||||
->paginate();
|
->paginate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ trait AttachmentsSearch
|
|||||||
return $query->where('mime_type', $value);
|
return $query->where('mime_type', $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function searchDriver($query, $value, $data)
|
public function searchDriverAttr($query, $value, $data)
|
||||||
{
|
{
|
||||||
return $query->where('driver', $value);
|
return $query->where('driver', $value);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user