Commit 6088d369 authored by 朱招明's avatar 朱招明

update

parent 7f421889
......@@ -48,8 +48,8 @@ class RoleController extends BaseController
*
*/
public function list(){
$roles = AdminRole::all();
return $this->response->collection($roles,new AdminRoleTransformer());
$roles = AdminRole::paginate(request('per_page', null));
return $this->response->paginator($roles,new AdminRoleTransformer());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment