We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e343966 commit 095cb55Copy full SHA for 095cb55
laravel/app/Http/Controllers/Api/RoleController.php
@@ -33,7 +33,7 @@ public function __construct(Request $request)
33
*/
34
public function index()
35
{
36
- $list = Role::orderBy('sort')->paginate($this->perPage);
+ $list = Role::paginate($this->perPage);
37
return $this->out(200, $list);
38
}
39
@@ -44,9 +44,9 @@ public function index()
44
45
public function create()
46
47
- $roles = Permission::get(); // 获取所有权限
+ $permissions = Permission::get(); // 获取所有权限
48
49
- return $this->out(200, ['roles' => $roles, 'method' => 'create']);
+ return $this->out(200, ['permissions' => $permissions, 'method' => 'create']);
50
51
52
/**
0 commit comments