Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animations are not being trigged #111

Closed
eaglefox82 opened this issue Jan 4, 2021 · 1 comment
Closed

Animations are not being trigged #111

eaglefox82 opened this issue Jan 4, 2021 · 1 comment

Comments

@eaglefox82
Copy link

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
Copy link
Owner

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. 😄

eb1a0d43950d435293c173f87e1c76ca15_46_00.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants