for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sco\ActionLog\Handlers;
abstract class AbstractHandler implements HandlerInterface
{
protected function getClient()
if (class_exists('\Jenssegers\Agent\Agent')) {
$agent = new \Jenssegers\Agent\Agent();
$platform = $agent->platform();
$browser = $agent->browser();
return [
'device' => $agent->device(),
'platform' => $platform . ' ' . $agent->version($platform),
'browser' => $browser . ' ' . $agent->version($browser),
];
}
'agent' => request()->server('HTTP_USER_AGENT'),