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