Exemplo n.º 1
0
 /**
  * @param array $attributes
  *
  * @return $this
  */
 public function updateWithRelations(array $attributes)
 {
     parent::updateWithRelations($attributes);
     $this->name = $attributes['name'];
     return $this;
 }
Exemplo n.º 2
0
 /**
  * @param array $attributes
  *
  * @return $this
  */
 public function updateWithRelations(array $attributes)
 {
     parent::updateWithRelations($attributes);
     $this->publish_date = Carbon::createFromFormat('d/m/Y', $attributes['publish_date']);
     return $this;
 }