Skip to content

Commit

Permalink
Use the model to get the property
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Nov 24, 2015
1 parent ab9a23e commit a3646b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Repositories/Eloquent/EloquentPageRepository.php
Expand Up @@ -45,10 +45,10 @@ public function create($data)
*/
public function update($model, $data)
{
$page = $model->update($data);
$model->update($data);

event(new PageWasUpdated($page->id, $data));
event(new PageWasUpdated($model->id, $data));

return $page;
return $model;
}
}

0 comments on commit a3646b2

Please sign in to comment.