laravel 4 years ago
php-based framework #Web Development

Laravel Livewire: Parent-Child Form Example

Livewire is great for interactivity in forms, let me show you an example with an order-products form.

Content:

00:00​ - Intro: About Project

01:04​ - Why Livewire vs jQuery/Vue

02:52​ - Live-Coding: Starting Point

05:14​ - Installing/Enabling Livewire: "Hello"

07:08​ - Livewire Component with Properties Mount 

09: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:

https://github.com/LaravelDaily/Livewire-Parent-Child-Master-Detail

Laravel
by taylor otwell