PHP Laravel : How to get client browser/ Device?

后端 未结 5 645
野趣味
野趣味 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 05:50

    Use Agent

    which let you detect user browser and platform and also browser's/platform's version

    https://medium.com/@panjeh/laravel-detector-mobile-browser-name-version-platform-device-robot-crawler-user-language-8499bee7607c

    In the new version you can also detect the robots.

提交回复
热议问题