set null value to empty string

This commit is contained in:
2023-07-24 12:36:34 +10:00
parent d35b895ff4
commit 189e4ef230

View File

@@ -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.
*