\App\Http\Controllers\AdminPermissionController

Summary

Methods
Properties
Constants
__construct()
index()
create()
store()
show()
edit()
update()
destroy()
getPermissions()
No public properties found
No constants found
No protected methods found
$model_permission
N/A
No private methods found
No private properties found
N/A

Properties

Methods

__construct()

__construct(\App\Models\Permission  $permission) 

依赖注入

Parameters

\App\Models\Permission $permission

index()

index() : \Illuminate\Http\Response

Display a listing of the resource.

Returns

\Illuminate\Http\Response

create()

create() : \Illuminate\Http\Response

Show the form for creating a new resource.

Returns

\Illuminate\Http\Response

store()

store(\App\Http\Requests\PermissionPost  $request) : \Illuminate\Http\Response

Store a newly created resource in storage.

Parameters

\App\Http\Requests\PermissionPost $request

Returns

\Illuminate\Http\Response

show()

show(integer  $id) : \Illuminate\Http\Response

Display the specified resource.

Parameters

integer $id

Returns

\Illuminate\Http\Response

edit()

edit(integer  $id) : \Illuminate\Http\Response

Show the form for editing the specified resource.

Parameters

integer $id

Returns

\Illuminate\Http\Response

update()

update(\App\Http\Requests\PermissionPost  $request, integer  $id) : \Illuminate\Http\Response

Update the specified resource in storage.

Parameters

\App\Http\Requests\PermissionPost $request
integer $id

Returns

\Illuminate\Http\Response

destroy()

destroy(integer  $id) : \Illuminate\Http\Response

Remove the specified resource from storage.

Parameters

integer $id

Returns

\Illuminate\Http\Response

getPermissions()

getPermissions() 

ajax获取权限列表数据