Sweet Alert worked, but it closes within seconds why?

Posted 10 months ago by AbdulBazith

Guys i am working with a project, iam using sweet alert. but it closes immediately

how to solve

this is my code

i used

   <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.0.0/sweetalert.min.js"></script>

in my partials.

i used the below code in my view.blade

@include('sweet::alert')

this is my controller

 Alert::success('Data Deleted successfully');

the message is closed fast why??

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.