lundi 28 mars 2016

Get useragent in controller laravel 5 php

I am using laravel 5.0. How do I get the user agent from $request in a controller ?

public function index(Request $request)
{
    $useragent = $request->userAgent; // ????
    return $useragent;
}



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/25sHSk3
via IFTTT

Aucun commentaire:

Enregistrer un commentaire