set null value to empty string
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user