diff --git a/src/OwenIt/Auditing/Log.php b/src/OwenIt/Auditing/Log.php index 72aa097f..7db71cb8 100644 --- a/src/OwenIt/Auditing/Log.php +++ b/src/OwenIt/Auditing/Log.php @@ -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