title: Flash message after login laravel
body: <p>I'm using Laravel 5.4 with the pre-built auth library.</p>
  
  <p>I would like to have a sweet alert (or popup) come up when a user sucessfully logins but I can't find where the logic is where the redirect to happens.</p>
  
  <p>So:</p>
  
  <p>User logins successfully</p>
  
  <p>Gets forwarded to home controller (need to find this in the code and attach a flash message or something else?)</p>
  
  <p>In my view detect if there's a flash message and make a if there's a flash message in memory so I can then query it with Javascript and show an alert box.</p>
  
  <p>Edit:</p>
  
  <p>I already have this set and it's fine:</p>
  
  <pre><code>use AuthenticatesUsers;
  
  /**
   * Where to redirect users after login.
   *
   * @var string
   */
  protected $redirectTo = '/';
  </code></pre>
  
  <p>but I need to find where this is referenced? and add a flash message</p>
  
  <p>Thanks</p>