我可以从客户端浏览器获取哪些信息以及如何在 laravel 7.x 中获取这些信息

what information can i get from the client browser an how can i get that in laravel 7.x

我正在尝试使用 laravel 保存有关客户端浏览器的大部分信息,实际上我知道我可以访问 ip、用户代理和请求类型,还有有关客户端的更多信息?

use Illuminate\Http\Request;

public function example(Request $request)
{
    $request->ajax();
    $request->pjax();
    $request->ip();
    $request->ips();
    $request->userAgent();
    $request->fingerprint();
}

有关客户端的所有信息都在 $_SERVER 变量中。

如果你想要客户端浏览器使用:$_SERVER['HTTP_USER_AGENT'].

你可以在这里找到这本词典的所有关键字:https://www.php.net/manual/en/reserved.variables.server.php