realrashid / sweet-alert

A BEAUTIFUL, RESPONSIVE, CUSTOMIZABLE, ACCESSIBLE (WAI-ARIA) REPLACEMENT FOR JAVASCRIPT'S POPUP BOXES FOR LARAVEL
https://realrashid.github.io/sweet-alert
MIT License
1.12k stars 164 forks source link

Animations are not being trigged #111

Closed eaglefox82 closed 3 years ago

eaglefox82 commented 3 years ago

I have installed this package via Composer into my Laravel Project. However I have not successfully trigged any animation of any alert.

I have followed all install steps as details, including publishing the package via cmd

The following provides a standard model if($currentstatus == "Y") { alert()->info('Member marked as attending', "Member has already been marked as attending")->autoclose(2000); return redirect(action('EventController@show', $r->event_id)); }

if I use the following if($currentstatus == "Y") { Alert::info('Member marked as attending', "Member has already been marked as attending")->autoclose(2000); return redirect(action('EventController@show', $r->event_id)); } I get the same model popup

image

I checked the confing/sweetalert.php and found this 'animation' => [ 'enable' => env('SWEET_ALERT_ANIMATION_ENABLE', false), ], So I set yo true and no difference. I am using Laravel 7.13.0

Any help would be great

realrashid commented 3 years ago

Hey,

I have tested the package on fresh Laravel 8 installation with Laravel Sail it's working as expected.

image

I use the same alert code as you mentioned.

image

You can see the working result as image.

image

You can also checkout the video too. 😄

https://user-images.githubusercontent.com/15607685/103760339-c8aa6b80-5036-11eb-9ad6-ddb2b050da1a.mp4