A demo step-by-step project of adding a product to cart, first with full page refresh, and then introducing Livewire to avoid that refresh.
00:00 Intro, Starting Point and Plan
01:26 Why ShoppingCart Package?
02:22 Build Add To Cart Form
04:24 Fill Cart with Package
07:51 Calculate Cart on Top
09:06 Check if Product is in Cart
11:07 Livewire: Install
12:18 Livewire: Cart Counter Component
14:58 Livewire: Table Component
16:39 Add To Cart: Livewire Version
21:28 Cart Counter: Livewire Events
Repository: https://github.com/LaravelDaily/Larav...
Laravel Shopping Cart package: https://github.com/bumbummen99/Larave...
Why not store money values in floats? / performing_calculations_on_money
- - - - -
Support the channel by checking out our products:
- Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel
- Enroll in my Laravel courses: https://laraveldaily.teachable.com
- Purchase my Livewire Kit: https://livewirekit.com
- Subscribe to my weekly newsletter: http://bit.ly/laravel-newsletter
Watch video Laravel "Add to Cart": With/Without Livewire [LIVE-CODING] online without registration, duration hours minute second in high quality. This video was added by user Laravel Daily 05 June 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 49,683 once and liked it 962 people.