Laravel 10 Tutorial #110 | Laravel Shopping Cart (II) | Show User Cart Items in Shopping Cart Page
►Laravel 10 Tutorial Playlist: https://www.youtube.com/playlist?list=PLLUtELdNs2ZbX7T5wgbBR9wUXt5YPG-hm
In Part 110 of the Laravel 10 Tutorial to make the E-commerce Website in Laravel, we will continue working on the Laravel shopping cart page where we will show cart items.
In this video, we are going to show cart items in foreach loop by comparing with user session id.
1) Create getCartItems function :-
Update Cart model with getCartItems function in which we will get cart items or products by checking first user auth and if auth is not available means the user is not logged in then with a user session.
2) Update cart function :-
Now we will update the cart function in which we will call getCartItems and print to check if all user items are coming with a user session.
3) Create Relation:-
Now we will create a relation between carts and products table for getting the detail of the product so add the product relation function in the Cart model with belongsTo relation. And we will add brand and images relation to it to get complete product and image details.
4) Update getCartItems function :-
Now we will update the getCartItems function to attach the product relation so that we will get complete product details with every cart item.
5) Update cart.blade.php file:-
Now update the cart blade file with foreach loop to show all cart items added by the user without logging in with the session id.
6) Update addToCart function :-
Now we will update addToCart function to update success message with cart link when product gets added into the cart.
In the next video, we will work on updating cart item quantity with Ajax.
►Click here to subscribe for Laravel & other updates - https://www.youtube.com/stackdevelopers
Popular Stack Developers Series that can help you:-
►Laravel Multi-Vendor E-commerce Website - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTlQ97V1Tl8mirS3qXHNFZ
►React JS Tutorial for Beginners with Laravel - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYnEIWliBpU98gtorNRNHw1
►Laravel Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZaHaFmydqjcQ-YyeQ19Cd6u
►GIT Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZVQ-dLOMFWvmCCduzJ8c6R
►Laravel API Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbcCsd4yAAiBU2L3ROREk8P
►Laravel Interview Questions - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbzB_1Jdp_yFcORwOfWP8RU
►jQuery Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbMYoUA46GIonOH29KcjtxA
►Laravel Basic E-commerce Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZY5drPxIWzpq5crhantlzp7
►Laravel Dating Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZrPUnxjlomErJfNvkyS6Hf
►Join this channel to get the complete source code of all series:
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join
Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - http://facebook.com/stackdevelopers2/
►Join Facebook Group to resolve your queries - http://facebook.com/groups/stackdevelopers
►Follow on Instagram - https://www.instagram.com/stackdevelopers2/
►Follow on GitHub - https://github.com/stackdevelopers
#laravel10 #laravel10tutorial #laravel
Видео Laravel 10 Tutorial #110 | Laravel Shopping Cart (II) | Show User Cart Items in Shopping Cart Page канала Stack Developers
In Part 110 of the Laravel 10 Tutorial to make the E-commerce Website in Laravel, we will continue working on the Laravel shopping cart page where we will show cart items.
In this video, we are going to show cart items in foreach loop by comparing with user session id.
1) Create getCartItems function :-
Update Cart model with getCartItems function in which we will get cart items or products by checking first user auth and if auth is not available means the user is not logged in then with a user session.
2) Update cart function :-
Now we will update the cart function in which we will call getCartItems and print to check if all user items are coming with a user session.
3) Create Relation:-
Now we will create a relation between carts and products table for getting the detail of the product so add the product relation function in the Cart model with belongsTo relation. And we will add brand and images relation to it to get complete product and image details.
4) Update getCartItems function :-
Now we will update the getCartItems function to attach the product relation so that we will get complete product details with every cart item.
5) Update cart.blade.php file:-
Now update the cart blade file with foreach loop to show all cart items added by the user without logging in with the session id.
6) Update addToCart function :-
Now we will update addToCart function to update success message with cart link when product gets added into the cart.
In the next video, we will work on updating cart item quantity with Ajax.
►Click here to subscribe for Laravel & other updates - https://www.youtube.com/stackdevelopers
Popular Stack Developers Series that can help you:-
►Laravel Multi-Vendor E-commerce Website - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTlQ97V1Tl8mirS3qXHNFZ
►React JS Tutorial for Beginners with Laravel - https://www.youtube.com/playlist?list=PLLUtELdNs2ZYnEIWliBpU98gtorNRNHw1
►Laravel Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZaHaFmydqjcQ-YyeQ19Cd6u
►GIT Tutorial for Beginners - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZVQ-dLOMFWvmCCduzJ8c6R
►Laravel API Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbcCsd4yAAiBU2L3ROREk8P
►Laravel Interview Questions - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbzB_1Jdp_yFcORwOfWP8RU
►jQuery Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbMYoUA46GIonOH29KcjtxA
►Laravel Basic E-commerce Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZY5drPxIWzpq5crhantlzp7
►Laravel Dating Series - https://www.youtube.com/playlist?list=PLLUtELdNs2ZZrPUnxjlomErJfNvkyS6Hf
►Join this channel to get the complete source code of all series:
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join
Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - http://facebook.com/stackdevelopers2/
►Join Facebook Group to resolve your queries - http://facebook.com/groups/stackdevelopers
►Follow on Instagram - https://www.instagram.com/stackdevelopers2/
►Follow on GitHub - https://github.com/stackdevelopers
#laravel10 #laravel10tutorial #laravel
Видео Laravel 10 Tutorial #110 | Laravel Shopping Cart (II) | Show User Cart Items in Shopping Cart Page канала Stack Developers
laravel 10 laravel 10 tutorial make admin panel in laravel 10 laravel admin panel create admin in laravel admin panel laravel make admin laravel make ecommerce admin laravel laravel 10 ecommerce Laravel Shopping Cart Convert Cart HTML to Laravel Blade html to blade laravel 10 crud laravel 10 project laravel 10 for beginners
Комментарии отсутствуют
Информация о видео
28 ноября 2023 г. 18:30:27
00:27:33
Другие видео канала