Example #1
0
 /**
  * Update model
  * 
  * @param  array $input
  * @param  int $id   
  * @return Response       
  */
 public function update($input, $id)
 {
     $model = $this->find($id);
     if (!$this->isValid($input, $this->model->getRules())) {
         return false;
     }
     $model->fill($input);
     return $model->save();
 }