In this tutorial i’m going to learn how to use slideup function in laravel after success should be call slideup function.
1st step use below cdn
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
2nd step go to blade page put below code.
@if(session('success'))
<div class="alert alert-success alert-dismissible fade show" id="alert" role="alert">
{{session('success')}}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
@elseif(session('error'))
<div class="alert alert-danger alert-dismissible fade show" id="alert" role="alert">
{{session('error')}}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
@endif
Now this code is helpfull for you š