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) {
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.
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.
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
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?
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; } }); }
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; } }); }
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;
}
});
}
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.
Thank you so much Sir, It was really good and simple . Keep up the good work.
hi yamin, how do you add the indicator number for product that already on the cart? do i miss any episode to make it?
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.
Thanks a lot bro ❤️, in the next tutorial pls teach us how to edit user profile and add profile picture in the user account
how did you make the cart display mini number on the cart buttton for total number of products added into the cart
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
I did it but i did not record that part..sorry about that...but if you are interested i can give you the code
@@WebTechKnowledge good point.required please make tutorial or send source code
@@WebTechKnowledge we need that yamin it will be great if you provide the video of that
this is wonderful. thanks very much for educating us.... please include the email and the facebook link.
How to auto refresh cart count ?
Hey man i hope you do video rating vote in laravel thanks you so much
How to manage quantity in detail product and in admin product
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?
add PHP Namespace Resolver extention to your vsCode
Good Good Godd 😀😀😀😀
How to manage product stock like quantity
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
Sir can you share the code how to count the cart please?
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?
vaiya love you
vaiya please show the subadmin permission in this project
PLEASE SHARE THE VIDEO AGAIN ON HOW YOU SHOW COUNT IN THE CART PLEASE
i shared the source code for the sweet alert message.
@@callmejiji20 yes
@@callmejiji20 ok
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;
}
});
}
Hi, can you show us how to host our project to a website?
I will upload that video tommorow
@@WebTechKnowledge wow, thanks so much!
done 1/23/2023
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;
}
});
}
pls tell me how to count Cart item of specified user