Building a maintainable Livewire application
summary
Examples replace controllers and views with full-page Livewire components linked from routes, naming uses verbs and suffixes like EditQuotePage and QuoteFormComponent, computed properties with cache prevent lost joins and remove extra queries on subsequent requests, form objects move validation and public properties out of components, action classes extract persistence so tests focus on behavior, and a reversed component ordering convention makes files readable; a live demo shows queries vanish on rehydrate until computed caching is enabled.
AI-written summary · about
chapters (10)
- 0:00Components
- 2:08Page components
- 3:32Invokable components
- 4:21Naming conventions
- 5:25Organising components
- 6:47Computed properties
- 10:19Cached properties
- 10:51Component structure
- 15:25Form objects
- 17:24Action classes
related talks
27mPhilo Hermans :: Reusing Reusable Livewire Components
50mLiveWire Hands-on
26mVerbs and Livewire in action
28mLivewire vs InertiaJS: which to choose?
29mLuke Downing :: Lessons from the Laravel Framework
40mEngineering Complex Applications with Laravel 4
34mFilamentPHP: your admin panel on steroids!
32mReact, the Laravel way
