AcProjectsController::update PHP Метод

update() публичный Метод

Update the specified resource in storage.
public update ( integer $id ) : Response
$id integer
Результат Response
    public function update($id)
    {
        // $this->acProject = $this->acProjectModel->find($id);
        $this->acProject->fill(request()->except('_method', '_token'));
        try {
            $this->acProject->save();
            return redirect()->route('ac_projects.show', $id);
        } catch (Exception $e) {
            return redirect()->route('ac_projects.edit', $id)->withErrors($this->acProject->errors())->with('message', 'There were validation errors.');
        }
    }