title: Laravel how to redirect to a loading page after login
body: <p>I am making a Laravel Project for school, it's a web chat app, I wanted to make it  when you login it redirects you to my animated loading page and then after some seconds, it would redirect to the home route.</p>
  <p><a href="https://i.stack.imgur.com/Ja0Ju.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ja0Ju.png" alt="Login" /></a></p>
  <p><a href="https://i.stack.imgur.com/XfZZD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XfZZD.png" alt="Loader" /></a></p>
  <p><a href="https://i.stack.imgur.com/sVTmT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sVTmT.png" alt="Home" /></a></p>
  <p>Login Controller :</p>
  <p>changed from <code> protected $redirectTo = &quot;/home&quot;;</code>
  to:</p>
  <pre><code>protected $redirectTo = &quot;/loader&quot;;
  </code></pre>
  <p>What would be the next step i am lost.</p>