title: How can I display some messages and redirect page after x seconds in Laravel?
body: <p>In the Laravel framework, can I redirect a page after some number of seconds? Like redirecting to the dashboard page 10 seconds after a successful login.</p>
  
  <p>Currently I use this function to redirect the page:</p>
  
  <pre><code>return redirect()-&gt;route('dashboard')-&gt;with('success','Successfully login');
  </code></pre>
  
  <p>Using this redirects the page successfully, but the success message is not displayed on the page because the page redirects too quickly to the second page.</p>