uxweb/sweet-alert

alert() doesn't show when i use sweetAlert2

Closed this issue · 1 comments

is there any documentation to use sweetAlert2 instead of sweetAlert in this package ?
im stuck on this script.

<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
@include('sweet::alert')

alert() doesnt appear when i use sweetAlert2
alert()->message('Message', 'Optional Title');

thank you for your package .

nevermind . i fixed the issues by append the script after @include('sweet::alert') . and it works perfectly .

<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
@include('sweet::alert')
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>