plugins/laravel-expert/skills/laravel-livewire/SKILL.md
Livewire 4 reactive components on Laravel 13 - wire:model, actions, events, Volt, Folio. Use when building reactive UI without JavaScript.
npx skillsauth add fusengine/agents laravel-livewireInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Before ANY implementation, use TeamCreate to spawn 3 agents:
After implementation, run fuse-ai-pilot:sniper for validation.
| Feature | Description | |---------|-------------| | Components | Reactive PHP classes with Blade views | | wire:model | Two-way data binding | | Actions | Call PHP methods from frontend | | Events | Component communication | | Volt | Single-file components | | Folio | File-based routing |
Component choice?
├── Complex logic → Class-based component
├── Simple page → Volt functional API
├── Medium complexity → Volt class-based
├── Quick embed → @volt inline
└── File-based route → Folio + Volt
Binding type?
├── Form fields → wire:model.blur
├── Search input → wire:model.live.debounce.300ms
├── Checkbox/toggle → wire:model.live
├── Select → wire:model
└── No sync → Local Alpine x-data
| Topic | Reference | When to Consult | |-------|-----------|-----------------| | Components | components.md | Creating components | | Wire Directives | wire-directives.md | Data binding, events | | Lifecycle | lifecycle.md | Hooks, mount, hydrate | | Forms | forms-validation.md | Validation, form objects | | Events | events.md | Dispatch, listen | | Alpine | alpine-integration.md | $wire, @entangle | | File Uploads | file-uploads.md | Upload handling | | Nesting | nesting.md | Parent-child | | Loading | loading-states.md | wire:loading, lazy | | Navigation | navigation.md | SPA mode | | Testing | testing.md | Component tests | | Security | security.md | Auth, rate limit | | Volt | volt.md | Single-file components |
| Topic | Reference | When to Consult | |-------|-----------|-----------------| | Folio | folio.md | File-based routing | | Precognition | precognition.md | Live validation | | Reverb | reverb.md | WebSockets |
| Template | When to Use | |----------|-------------| | BasicComponent.php.md | Standard component | | FormComponent.php.md | Form with validation | | VoltComponent.blade.md | Volt patterns | | DataTableComponent.php.md | Table with search/sort | | FileUploadComponent.php.md | File uploads | | NestedComponents.php.md | Parent-child | | ComponentTest.php.md | Testing patterns |
class Counter extends Component
{
public int $count = 0;
public function increment(): void
{
$this->count++;
}
public function render()
{
return view('livewire.counter');
}
}
<?php
use function Livewire\Volt\{state};
state(['count' => 0]);
$increment = fn() => $this->count++;
?>
<button wire:click="increment">{{ $count }}</button>
<input wire:model.blur="email">
<input wire:model.live.debounce.300ms="search">
<button wire:click="save" wire:loading.attr="disabled">Save</button>
Livewire 4 est la version compatible Laravel 13. Changements clés :
wire:model.live rate-limited par défaut (300ms debounce implicite)#[Locked], #[Computed], #[On] toujours supportés/livewire/update gérées automatiquement, pas de config requisewire:poll.5s → toujours valide$this->dispatch('event') → toujours valide#[\Livewire\Attributes\Validate]) → API stabledevelopment
Use when optimizing entity-based / semantic SEO 2026. Covers entity maps, Google Knowledge Graph resolution, salience scoring, passage-level ranking, about/sameAs/knowsAbout schema, Cloud Natural Language API validation.
development
Use when running SEO, GEO, schema, Core Web Vitals, sitemap, hreflang, E-E-A-T, AI Overviews, technical SEO, or structured data tasks. Covers full-site audits, single-page analysis, schema markup, content quality, AI search optimization, local SEO, sitemap/robots, internal linking, semantic clustering, and search experience.
development
Use when optimizing search experience (SXO). Covers intent matching, user personas, user stories, page-type analysis, dwell time, scroll depth, pogo-sticking prevention.
development
Use when optimizing local SEO. Covers Google Business Profile, NAP consistency, citations, reviews acquisition, Local Pack ranking, location pages, LocalBusiness schema.