-
Notifications
You must be signed in to change notification settings - Fork 207
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
Alerts not showing on 5.4.11 #46
Comments
Have you added |
Yeah I have added both of these. |
Do you receive any error messages? Might be worth trying |
same issue here exactly with 5.3, nothing happening at all |
Ran both commands, And also tested on a fresh laravel project but still not working. No errors are showing, it just doesn't display the alert. |
I have just created a fresh install of laravel and included this package and everything has worked fine. Are you sure that the following is included on the layout where you want the alert to appear? Also are you sure that these files definitely exist?
|
it worked for me after putting the @include('sweet::alert') in the Script tag i was just putting it in my view which doesnt work |
@doatyjs If PHP is not squacking for some errors, maybe this is related to the load of sweetalert assets. Try figuring out with chrome dev tools if all your assets are being loaded. I just made a test with a fresh Laravel 5.4.15 installation and it works as expected. If you need more help, please let me know, i'll be happy to help you! |
Thank you @Nathanw @ramisohail for helping @doatyjs to try solve this issue 👍 |
So i am trying to at uxweb/sweet-alert to my project that is currently using 5.4.11.
I have used this on many projects before but none since i started using laravel 5.4.11
My Master Layout:
My config/app.php:
UxWeb\SweetAlert\SweetAlertServiceProvider::class,
My Controller:
I have added
use Auth;
into my controller as well.The text was updated successfully, but these errors were encountered: