Comments (20)
@legreco
Yes, it is compatible with Laravel 5.*.
@R00118189
We are working on the new version. It'll be ready for the next week (at the end of October).
Thanks for all your help and support.
from sweet-alert.
I can make it work with sweetalert 2.
I just need to export the config and view
php artisan vendor:publish --provider "UxWeb\SweetAlert\SweetAlertServiceProvider"
then change the view resources/view/vendor/sweet/alert.blade.php
to follow sweetalert 2 format
@if (Session::has('sweet_alert.alert'))
<script>
swal({
text: "{!! Session::get('sweet_alert.text') !!}",
title: "{!! Session::get('sweet_alert.title') !!}",
timer: {!! Session::get('sweet_alert.timer') !!},
icon: "{!! Session::get('sweet_alert.type') !!}",
showConfirmButton: "{!! Session::get('sweet_alert.showConfirmButton') !!}",
confirmButtonText: "{!! Session::get('sweet_alert.confirmButtonText') !!}",
confirmButtonColor: "#AEDEF4"
});
</script>
@endif
I hope that can help
from sweet-alert.
There are some breaking changes in the sweet alert 2 javascript API.
This package is intended to work with v1 of sweet alert javascript.
To Add compatibility with sweet alert 2 I would need to make a new release which will not be backwards compatible.
So the versions will be as:
V1.* => sweet-alert compatible
V2.* => sweet-alert-2 compatible
What do you thing guys? Does this looks good to you?
from sweet-alert.
I have downloaded both css and js @1.1.3 and worked fine. Here is the link.
https://unpkg.com/[email protected]/dist/
from sweet-alert.
the upgraded package of sweetalert1.x to sweetalert2.0 is not working as expected icons are missing while using it.
from sweet-alert.
The icons are showing correctly on my side
from sweet-alert.
Ok Guys, I see that the same sweet alert package from npm has upgraded to v2 officially. Then I will upgrade this package to work with the sweet-alert2 javascript library.
I need to review the breaking changes as published here:
https://sweetalert.js.org/guides/#upgrading-from-1x
from sweet-alert.
will the upgraded package laravel 5.5 compatible?
from sweet-alert.
@uxweb when can we expect PR merge? and full SweetAlert2 compatibility?
from sweet-alert.
I am also getting just a normal alert for all types of messages. Can someone help? I am using Laravel 5.5
@uxweb
from sweet-alert.
I'm also having this same issue on Laravel 5.5. I'm just getting a normal/regular message popup, changing the type of messages always produces the same result.
from sweet-alert.
Does anybody know if the problem is solved because I am running out of time to deploy my app.
Thanks. @uxweb
from sweet-alert.
I am also waiting for the update.
from sweet-alert.
+1
from sweet-alert.
Do you guys have an ETA for v2?
Thank you so much for this package!!
I'm using it with sweetalert 1.1.3 in the meantime, works wonderfully. Great job!!
from sweet-alert.
@uxweb Just wondering if this is now compatible with SweetAlert2? https://sweetalert2.github.io/
from sweet-alert.
@Wasca @magnosis @iLongRanger @dashracer @OGhawsi
Guys, I'm very sorry for have making you wait for so long.
v2 is now ready!
I really appreciate all your support.
Best regards
from sweet-alert.
Do not show me the icons too.
from sweet-alert.
Icon not showing :(
from sweet-alert.
I can make it work with sweetalert 2.
I just need to export the config and view
php artisan vendor:publish --provider "UxWeb\SweetAlert\SweetAlertServiceProvider"
then change the view
resources/view/vendor/sweet/alert.blade.php
to follow sweetalert 2 format@if (Session::has('sweet_alert.alert')) <script> swal({ text: "{!! Session::get('sweet_alert.text') !!}", title: "{!! Session::get('sweet_alert.title') !!}", timer: {!! Session::get('sweet_alert.timer') !!}, icon: "{!! Session::get('sweet_alert.type') !!}", showConfirmButton: "{!! Session::get('sweet_alert.showConfirmButton') !!}", confirmButtonText: "{!! Session::get('sweet_alert.confirmButtonText') !!}", confirmButtonColor: "#AEDEF4" }); </script> @endif
I hope that can help
This is correct. But I had to change swal() function for swal.fire() because sweetalert2 exposes swal() as a class and I kept getting a console error "Cannot call a class as a function".
from sweet-alert.
Related Issues (20)
- i used use UxWeb\SweetAlert\SweetAlert;
- not show sweetalert laravel5.8 HOT 6
- Toast SweetAlert2 HOT 1
- Consider using SweetAlert2 instead of SweetAlert HOT 1
- Install issue with Laravel 7 HOT 1
- No hint path defined for [sweetalert] HOT 5
- alert() doesn't show when i use sweetAlert2 HOT 1
- how i can remove ok button
- multiple browsers HOT 1
- Disable for validaton? HOT 2
- Laravel 8 Support HOT 3
- Alert title and message blank when using redirect()->withErrors() HOT 3
- Form submits twice when using with Vue modal.
- allowOutsideClick doesn't work.
- when i click the button the sweet alert comes after refreshing or changing the page
- SA and LiveWire how ?
- Laravel 9.0 Support HOT 4
- Big Problem with Laravel 9 HOT 4
- is this repository owner still alive?
- dosnt support laravel 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sweet-alert.