laravel sweetalert2 itsolution code example
Example 1: how to use sweetalert in laravel controller
@if (Session::has('sweet_alert.alert'))
<script>
swal({!! Session::get('sweet_alert.alert') !!});
</script>
@endif
Example 2: sweetalert laravel
<script src="https://unpkg.com/[email protected]/dist/sweetalert2.all.js"></script>