Giter Club home page Giter Club logo

Comments (20)

uxweb avatar uxweb commented on May 24, 2024 8

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

addingama avatar addingama commented on May 24, 2024 7

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.

uxweb avatar uxweb commented on May 24, 2024 6

@joerjoers

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.

OGhawsi avatar OGhawsi commented on May 24, 2024 1

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.

ashish328 avatar ashish328 commented on May 24, 2024

the upgraded package of sweetalert1.x to sweetalert2.0 is not working as expected icons are missing while using it.

from sweet-alert.

legreco avatar legreco commented on May 24, 2024

The icons are showing correctly on my side

from sweet-alert.

uxweb avatar uxweb commented on May 24, 2024

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.

legreco avatar legreco commented on May 24, 2024

will the upgraded package laravel 5.5 compatible?

from sweet-alert.

R00118189 avatar R00118189 commented on May 24, 2024

@uxweb when can we expect PR merge? and full SweetAlert2 compatibility?

from sweet-alert.

OGhawsi avatar OGhawsi commented on May 24, 2024

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.

zietbukuel avatar zietbukuel commented on May 24, 2024

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.

OGhawsi avatar OGhawsi commented on May 24, 2024

Does anybody know if the problem is solved because I am running out of time to deploy my app.
Thanks. @uxweb

from sweet-alert.

iLongRanger avatar iLongRanger commented on May 24, 2024

I am also waiting for the update.

from sweet-alert.

23andreas avatar 23andreas commented on May 24, 2024

+1

from sweet-alert.

magnosis avatar magnosis commented on May 24, 2024

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.

Wasca avatar Wasca commented on May 24, 2024

@uxweb Just wondering if this is now compatible with SweetAlert2? https://sweetalert2.github.io/

from sweet-alert.

uxweb avatar uxweb commented on May 24, 2024

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

doliskani avatar doliskani commented on May 24, 2024

Do not show me the icons too.

from sweet-alert.

prafful-panwar-ayur avatar prafful-panwar-ayur commented on May 24, 2024

Icon not showing :(

from sweet-alert.

chuysb avatar chuysb commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.