Track who created incident. Closes #2717

This commit is contained in:
James Brooks
2017-09-14 19:13:00 +01:00
parent 0ebaa395c0
commit 1e3516d7b7
4 changed files with 67 additions and 0 deletions

View File

@@ -83,6 +83,16 @@ class IncidentUpdate extends Model implements HasPresenter
return $this->belongsTo(Incident::class);
}
/**
* Get the user relation.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function user()
{
return $this->belongsTo(User::class);
}
/**
* Get the presenter class.
*