App\Http\Controllers\UsersController::edit PHP Method

edit() public method

Show the form for editing the specified resource.
public edit ( integer $id ) : Response
$id integer
return Response
    public function edit($id)
    {
        return view('users.edit')->withUser($this->users->find($id))->withRoles($this->roles->listAllRoles())->withDepartments($this->departments->listAllDepartments());
    }