App\Http\Controllers\Backend\RoleController::edit PHP Method

edit() public method

Show the form for editing the specified resource.
public edit ( integer $id ) : Illuminate\Http\Response
$id integer
return 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()]);
    }