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;
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire