App\Http\Controllers\Backend\RoleController::edit PHP 메소드

edit() 공개 메소드

Show the form for editing the specified resource.
public edit ( integer $id ) : Illuminate\Http\Response
$id integer
리턴 Illuminate\Http\Response
    public function edit($id)
    {
        $role = $this->roles->find($id);
        return view('backend.role.edit', ['role' => $role, 'rolePermissions' => $role->perms->pluck('id')->all(), 'permissions' => $this->permissions->all()]);
    }