diff --git a/app/Models/AnalyticsSession.php b/app/Models/AnalyticsSession.php index f86ef9b..3e7b653 100644 --- a/app/Models/AnalyticsSession.php +++ b/app/Models/AnalyticsSession.php @@ -21,6 +21,17 @@ class AnalyticsSession extends Model 'ended_at' ]; + /** + * Set the "useragent" attribute. + * + * @param mixed $value + * @return void + */ + public function setUseragentAttribute($value) + { + $this->attributes['useragent'] = $value !== null ? $value : ''; + } + /** * Returns the related requests for this session. *