title: Laravel 5.2 : Do something after user has logged in?
body: <p><em>(I'm a beginner of Laravel)</em></p>
  
  <p>I'm using <code>Laravel 5.2</code>. I have successfully enabled the Authentication; by doing the <code>php artisan make:auth</code> and stuffs.</p>
  
  <p>So my login is working.</p>
  
  <p>Now i need to do something once someone has logged in. For an simple example:</p>
  
  <p>LOGIN:</p>
  
  <ul>
  <li>Once a user has logged in, write a value into Session.</li>
  <li>For example: <code>$request-&gt;session()-&gt;put('UserAgent', $ClientUserAgent);</code></li>
  </ul>
  
  <p>LOGOUT:</p>
  
  <ul>
  <li>Same thing to do, once a user has logged out, delete the custom Session value.</li>
  <li>For example: <code>$request-&gt;session()-&gt;forget('UserAgent');</code></li>
  </ul>
  
  <p>I'm not sure whether there are (things like) <code>hooks</code> or <code>Event Listeners</code>, <code>Event Handlers</code>, or something like that.</p>
  
  <p>How can i do it please?</p>