如何在Laravel中显示一些消息并在x秒后重定向页面?

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.

Currently I use this function to redirect the page:

return redirect()->route('dashboard')->with('success','Successfully login');

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.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    
<div class="alert-success alert-dismissible alertDismissible">hai</div>

<script>
$(document).ready(function(){ 
   $(".alertDismissible").fadeTo(2000, 500).slideUp(500, function(){
       $(".alertDismissible").slideUp(600);
     });
})
</script>

</div>