Переопределить класс OwenIt\Auditing\Resolvers\UserAgentResolver
,
audit. php
'resolver' => [
...
'user_agent' => App\Resolvers\UserAgentResolver::class,
...
],
App \ Resolvers \ UserAgentResolver. php
class UserAgentResolver implements \OwenIt\Auditing\Contracts\UserAgentResolver
{
/**
* {@inheritdoc}
*/
public static function resolve()
{
return 'Prefix-'.substr(
Request::header('User-Agent'), 0, 50
).'-Suffix';
}
}