Livewire is great for interactivity in forms, let me show you an example with an order-products form.
0:00 Intro: About Project
1:04 Philosophy: Why Livewire vs jQuery/Vue
2:52 Live-Coding Begin: Starting Point
5:14 Installing/Enabling Livewire: "Hello"
7:08 Livewire Component with Properties Mount
9:40 Add Product Button: Wire-Click
12:09 Delete Product: Method with Parameter
13:37 Wire-Model: Binding Data
14:53 How/When Data is Refreshed
16:11 Final Testing and Conclusion
Repository: github.com/LaravelDaily/Livew...
Related links:
- "Older" version: Master-Detail Form in Laravel + jQuery: Create Order With Products quickadminpanel.com/blog/mast...
- Laravel Pivot Tables: Simple to Advanced Many-to-Many [VIDEO] • Laravel Pivot Tables: ...
- - - - -
Try our Laravel QuickAdminPanel: bit.ly/quickadminpanel
Enroll in my Laravel courses: laraveldaily.teachable.com
13 июл 2024