Ejemplo n.º 1
0
 /**
  * @return \Illuminate\Database\Eloquent\Model
  */
 public function update()
 {
     parent::update();
     $this->model->name = $this->request->get('name');
     return $this->model;
 }
Ejemplo n.º 2
0
 /**
  * @return \Illuminate\Database\Eloquent\Model
  */
 public function update()
 {
     parent::update();
     $this->model->publish_date = Carbon::createFromFormat('d/m/Y', $this->request->get('publish_date'));
     return $this->model;
 }