Laravel How to Add Sweet Alert Message in Laravel | Confirmation with SweetAlert Complete SweetAlert

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 35

  • @WebTechKnowledge
    @WebTechKnowledge  2 роки тому +6

    How to Implement Sweet Alert In Laravel
    1. composer require realrashid/sweet-alert
    2. php artisan sweetalert:publish
    3. Add this to your blade
    @include('sweetalert::alert')
    4. Add this at the top of your controller
    use RealRashid\SweetAlert\Facades\Alert;
    function confirmation(ev) {
    ev.preventDefault();
    var urlToRedirect = ev.currentTarget.getAttribute('href');
    console.log(urlToRedirect);
    swal({
    title: "Are you sure to cancel this product",
    text: "You will not be able to revert this!",
    icon: "warning",
    buttons: true,
    dangerMode: true,
    })
    .then((willCancel) => {
    if (willCancel) {

    window.location.href = urlToRedirect;

    }
    });

    }

  • @ogbodoobiomannanna6682
    @ogbodoobiomannanna6682 2 роки тому +5

    Thank you Yamin. Your tutorials have been of an immense benefit to me. Very simple and straight to the point. I am here always waiting for your videos and have refered many people to subscribe to your channels too.

  • @allen86333
    @allen86333 Рік тому +1

    Thank you so much Sir, It was really good and simple . Keep up the good work.

  • @primavierirhesaardana7269
    @primavierirhesaardana7269 11 місяців тому

    hi yamin, how do you add the indicator number for product that already on the cart? do i miss any episode to make it?

  • @md.mahbuburrahman1265
    @md.mahbuburrahman1265 2 роки тому

    please show how can add admin another subadmin and delete them ....and access permission for certain area
    and thanks for making all tutorial , i am so benefited watching your tutorials.

  • @tintanibaktot
    @tintanibaktot 2 роки тому

    Thanks a lot bro ❤️, in the next tutorial pls teach us how to edit user profile and add profile picture in the user account

  • @tonnyblair8238
    @tonnyblair8238 2 роки тому

    how did you make the cart display mini number on the cart buttton for total number of products added into the cart

  • @nelsononyando3402
    @nelsononyando3402 Рік тому

    Good tutorial! but how do you add the cart and order counts? I can see the count in your video but you havent done it in the tutorial

    • @WebTechKnowledge
      @WebTechKnowledge  Рік тому

      I did it but i did not record that part..sorry about that...but if you are interested i can give you the code

    • @05drmuhammadaslam23
      @05drmuhammadaslam23 Рік тому +1

      @@WebTechKnowledge good point.required please make tutorial or send source code

    • @taandavyt8826
      @taandavyt8826 Рік тому

      @@WebTechKnowledge we need that yamin it will be great if you provide the video of that

  • @pixelstudios001KE
    @pixelstudios001KE 2 роки тому +1

    this is wonderful. thanks very much for educating us.... please include the email and the facebook link.

  • @minapakhi717
    @minapakhi717 2 роки тому +2

    How to auto refresh cart count ?

  • @HungLe-uj1ky
    @HungLe-uj1ky 2 роки тому

    Hey man i hope you do video rating vote in laravel thanks you so much

  • @zandyferdiansyah8716
    @zandyferdiansyah8716 Рік тому

    How to manage quantity in detail product and in admin product

  • @200msGamingYT
    @200msGamingYT 2 роки тому

    In some videos ive seen when you write the model name it automatically sets the path of the model file like use App\Models\... How is that?

    • @Reza-pj4hd
      @Reza-pj4hd Рік тому

      add PHP Namespace Resolver extention to your vsCode

  • @joaorobertovelozo
    @joaorobertovelozo 2 роки тому

    Good Good Godd 😀😀😀😀

  • @shubhamsharma-ks7sl
    @shubhamsharma-ks7sl 2 роки тому

    How to manage product stock like quantity

  • @jackback5992
    @jackback5992 2 роки тому

    See in this video, at the top menu, in cart option it shows the count, and also in product list of view it shows the quantity, but you didn't shared it's training in this plays list. share missing vedios

  • @vinsensiusarko
    @vinsensiusarko Рік тому

    Sir can you share the code how to count the cart please?

  • @200msGamingYT
    @200msGamingYT 2 роки тому

    Sweet alerts suddenly closes:
    Clicked on delete button, it asked for confirmation, i clicked on yes delete.
    Then a pop up shown Deleted successfully but it closed on its own i didnt even clicked the ok button. How to fix that?

  • @md.mahbuburrahman1265
    @md.mahbuburrahman1265 2 роки тому

    vaiya love you
    vaiya please show the subadmin permission in this project

  • @jamesclaveria2906
    @jamesclaveria2906 Рік тому

    PLEASE SHARE THE VIDEO AGAIN ON HOW YOU SHOW COUNT IN THE CART PLEASE

  • @05drmuhammadaslam23
    @05drmuhammadaslam23 Рік тому

    i shared the source code for the sweet alert message.

    • @05drmuhammadaslam23
      @05drmuhammadaslam23 Рік тому

      @@callmejiji20 yes

    • @05drmuhammadaslam23
      @05drmuhammadaslam23 Рік тому

      @@callmejiji20 ok

    • @05drmuhammadaslam23
      @05drmuhammadaslam23 Рік тому

      function confirmation(ev)
      {
      ev.preventDefault();
      var urlToRedirect = ev.currentTarget.getAttribute('href');
      console.log(urlToRedirect);
      swal({
      title: "Are you sure to cancel this product",
      text: "You will not be able to revert this!",
      icon: "warning",
      button: true,
      dangerMode: true,
      })
      .then((willCancel) => {
      if (willCancel)
      {
      window.location.href = urlToRedirect;
      }
      });
      }

  • @vrnzs
    @vrnzs 2 роки тому

    Hi, can you show us how to host our project to a website?

    • @WebTechKnowledge
      @WebTechKnowledge  2 роки тому +1

      I will upload that video tommorow

    • @vrnzs
      @vrnzs 2 роки тому

      @@WebTechKnowledge wow, thanks so much!

  • @code4life332
    @code4life332 Рік тому

    done 1/23/2023

  • @05drmuhammadaslam23
    @05drmuhammadaslam23 Рік тому

    function confirmation(ev)
    {
    ev.preventDefault();
    var urlToRedirect = ev.currentTarget.getAttribute('href');
    console.log(urlToRedirect);
    swal({
    title: "Are you sure to cancel this product",
    text: "You will not be able to revert this!",
    icon: "warning",
    button: true,
    dangerMode: true,
    })
    .then((willCancel) => {
    if (willCancel)
    {
    window.location.href = urlToRedirect;
    }
    });
    }

    • @amanflash5441
      @amanflash5441 Рік тому

      pls tell me how to count Cart item of specified user