Multi-File Components (MFC) in Livewire v4

Organize complex components with the new multi-file component structure.

1 min readLivewireاقرأ بالعربية

For structured setups, Livewire v4 supports multi-file components.

Generate MFC

bash
php artisan make:livewire counter --mfc

Generated Structure

counter/
├── counter.php
├── counter.blade.php
├── counter.js
└── counter.test.php
All articles

Keep reading