I'm building a laravel application where I want to keep track of client browser details such as browser name. How do I do it using Laravel ?
public function postUser(Request $request)
{
$user = new User();
$user->name = $request->Input(['name']);
$device= $request->header('User-Agent');
dd($device);
$user->save();
return redirect('userSavePage');
}
I have used this $device= $request->header('User-Agent');
But while I dd() the output I get something Like this:
"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"
How do I get actual browser details?