title: Laravel get user browser and platform from user_agent column in session table
body: <p>laravel : <code>8.8</code></p>
  <p>laravel save user agent in session table like :</p>
  <pre><code>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
  </code></pre>
  <p>this is windows user with chrome browser.</p>
  <p>I want to get just user browser and platform from it , How can I do it accurately?</p>
  <p>I check <a href="https://github.com/jenssegers/agent" rel="nofollow noreferrer">jenssegers/agent</a> package and its awesome , but for that i need to add <code>platform</code> and <code>browser</code> column to session table , that is no problem and the problem is just  the way i want to save it that i try this ways :</p>
  <p>1- use <code>Illuminate\Auth\Events\Login</code> Event , that means when user login events fired i will save the platform and browser , i have no problem in implementation the issue in this case is in <code>Login</code> event its not saved the session recored yet!! and i coudln't update the recored.
  I use the <code>Illuminate\Auth\Events\Authenticated</code> event too but this event didn't run for me at all.</p>
  <p>2- use the laravel authenticated method :</p>
  <pre><code>public function authenticated(Request $request, $user)
  {
      dd(&quot;hi&quot;);
  }
  </code></pre>
  <p>that you can do something after user login , but because i use some separated login methods and it will not run for all of them.</p>
  <p>what do you suggest?</p>
  <p>thanks in advance.</p>