-
Notifications
You must be signed in to change notification settings - Fork 209
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
not show sweetalert laravel5.8 #118
Comments
Having the same issue with Laravel 6. And Facade method triggers nothing. :/ (Plus, I posted this comment here, but it's kinda related also to #93 and #115. I installed this via composer & npm, also tried with CDN. Also noticed that it didn't create its alias |
Looks like there's some bug related to the Facade. I'm digging into the code to find out the bug. All help is appreciated! |
Hi, Sharing some of my findings First Controller Action
'some-route' Controller action
The helper |
Hi, I found the problem with the facades. the sweet-alert/src/SweetAlert/SweetAlertNotifier.php Lines 360 to 363 in fb88b73
I then tried placing the |
THANKS "juliomotol" ! It's work for me ! did you put "$this->flashConfig();" in the __destruct() or did you remove it? |
Neither, I was just trying to figure out what could have been the problem and tried hacking the code a bit. I'd suggest using the helper functions for now until this is fixed. |
i used use UxWeb\SweetAlert\SweetAlert;
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>SweetAlert::success('Success Message', 'Added Done ');
i used in blade.php
@include('sweet::alert')
i used in // config/app.php
'providers' => [
UxWeb\SweetAlert\SweetAlertServiceProvider::class,
];
'aliases' => [
'Alert' => UxWeb\SweetAlert\SweetAlert::class,
];
The text was updated successfully, but these errors were encountered: