\App\Http\Controllers\AdminRoleController

Summary

Methods
Properties
Constants
home()
role()
roles()
allRoles()
create()
update()
delete()
syncPermissions()
syncRoles()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

home()

home() : \Illuminate\Contracts\View\View

homePage

Returns

\Illuminate\Contracts\View\View

role()

role(\Illuminate\Http\Request  $request) : \Symfony\Component\HttpFoundation\Response

获取角色详情

Parameters

\Illuminate\Http\Request $request

Returns

\Symfony\Component\HttpFoundation\Response

roles()

roles(\App\Http\Requests\Admin\Role\GetListRequest  $request) : \Symfony\Component\HttpFoundation\Response

获取角色列表

Parameters

\App\Http\Requests\Admin\Role\GetListRequest $request

Returns

\Symfony\Component\HttpFoundation\Response

allRoles()

allRoles(\App\Http\Requests\Admin\Role\AllRolesRequest  $request) : \Symfony\Component\HttpFoundation\Response

获取全部角色列表

Parameters

\App\Http\Requests\Admin\Role\AllRolesRequest $request

Returns

\Symfony\Component\HttpFoundation\Response

create()

create(\App\Http\Requests\Admin\Role\CreateRequest  $request) : \Symfony\Component\HttpFoundation\Response

创建角色

Parameters

\App\Http\Requests\Admin\Role\CreateRequest $request

Returns

\Symfony\Component\HttpFoundation\Response

update()

update(\App\Http\Requests\Admin\Role\UpdateRequest  $request) : \Symfony\Component\HttpFoundation\Response

更新角色

Parameters

\App\Http\Requests\Admin\Role\UpdateRequest $request

Returns

\Symfony\Component\HttpFoundation\Response

delete()

delete(\Illuminate\Http\Request  $request) : \Symfony\Component\HttpFoundation\Response

删除角色

Parameters

\Illuminate\Http\Request $request

Returns

\Symfony\Component\HttpFoundation\Response

syncPermissions()

syncPermissions(\App\Http\Requests\Admin\Role\SyncPermissionsRequest  $request) : \Symfony\Component\HttpFoundation\Response

授权权限

Parameters

\App\Http\Requests\Admin\Role\SyncPermissionsRequest $request

Returns

\Symfony\Component\HttpFoundation\Response

syncRoles()

syncRoles(\App\Http\Requests\Admin\Role\SyncRolesRequest  $request) : \Symfony\Component\HttpFoundation\Response

分配用户

Parameters

\App\Http\Requests\Admin\Role\SyncRolesRequest $request

Returns

\Symfony\Component\HttpFoundation\Response