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: [ Ссылка ]
Laravel Shopping Cart package: [ Ссылка ]
Why not store money values in floats? [ Ссылка ]
- - - - -
Support the channel by checking out our products:
- Try our Laravel QuickAdminPanel: [ Ссылка ]
- Enroll in my Laravel courses: [ Ссылка ]
- Purchase my Livewire Kit: [ Ссылка ]
- Subscribe to my weekly newsletter: [ Ссылка ]
Ещё видео!