title: How to update the last login column when the user successful login with Laravel?
body: <p>I'm trying to update the last login column when the user successful login, I tried putting the code below in LoginController, but it didn't work, I've tried with  a listener too, following <a href="https://stackoverflow.com/a/34521860/6569823">this answer</a>, but it didn't work, nothing ever happened, seems like the listener wasn't being executed. </p>
  
  <pre><code>        DB::table('users')
                -&gt;where('id', Auth::id())
                -&gt;update(['lastlogin' =&gt; Carbon::now()]);
  </code></pre>
  
  <p>My laravel version is   5.4.12. How can I get it working?</p>