Skip to content

Commit

Permalink
Adicionado relacionamento com model user
Browse files Browse the repository at this point in the history
Adicionado relacionamento com model user, autor responsável pela alteração.
  • Loading branch information
anteriovieira committed Sep 6, 2015
1 parent 4b50625 commit 6b1a4bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/OwenIt/Auditing/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ public function owner()
{
return $this->morphTo();
}

/**
* Author responsible for the change
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function author()
{
return $this->belongsTo(\Config::get('auth.model'));
}

/**
* Returns the object we have the history of
Expand Down

0 comments on commit 6b1a4bb

Please sign in to comment.