~/talk

Philo Hermans :: Reusing Reusable Livewire Components

Talkat Laracon EU 2024 · 2024-02-05..02-06· [laravel, php, component-design]
slides:none on file

A working modal system built with Livewire v3 and Alpine.js shows reusable UI pieces passed around as a PHP Artisan make:livewire component, opened via dispatched events like model.open, and kept in sync with entangled state using entangle. Components render dynamically with <x-dynamic-component>, support lazy placeholder loading (demo sleeps 3s to show it), and emit events to update other components. A component library (wire elements) and a cloud editor (wireboox) exist; production use handles thousands of users for about €10/month.

AI-written summary · about

  1. 0:00Introduction
  2. 1:02Why I built my own platform
  3. 2:26Livewire and Alpine JS
  4. 3:30Reusable Livewire components
  5. 4:13Dynamic login modal
  6. 8:47Passing modal arguments
  7. 10:12Frontend and backend state
  8. 13:20Dynamic component rendering
  9. 14:48Form validation in Livewire
  10. 16:13Hide modal on success
  11. 17:38UI updates on login
  12. 18:20Lazy loading components
  13. 20:27Modal custom directives
  14. 22:13Advanced Livewire features
  15. 23:39Introducing Wirebox
  16. 25:10Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.