/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update($id)
 {
     // $this->acProject = $this->acProjectModel->find($id);
     $this->acProject->fill(Input::except('_method', '_token'));
     if ($this->acProject->save()) {
         return Redirect::route('ac_projects.show', $id);
     } else {
         return Redirect::route('ac_projects.edit', $id)->withErrors($this->acProject->errors())->with('message', 'There were validation errors.');
     }
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return 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.');
     }
 }