PHP Laravel : How to get client browser/ Device?

后端 未结 5 617
野趣味
野趣味 2021-01-18 05:22

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         


        
5条回答
  •  南笙
    南笙 (楼主)
    2021-01-18 06:01

    I ended using the faster, and simpler way:

    $request->header('User-Agent');
    

    Hope it helps someone!

提交回复
热议问题