livewire-development

Builds, converts, and debugs Livewire 4 components in Laravel applications.

1|Updated Aug 29, 2026
One-click install
npx skills add https://github.com/IzzatFirdaus/task-enterprise-api --skill livewire-development-izzatfirdaus
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: livewire-development
Source: https://github.com/IzzatFirdaus/task-enterprise-api/tree/main/.github/skills/livewire-development
Command: npx skills add https://github.com/IzzatFirdaus/task-enterprise-api --skill livewire-development-izzatfirdaus

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Livewire 4 introduces new component formats, directives, and breaking changes from version 3, making it easy to use outdated patterns or misconfigure components. This Skill provides authoritative guidance for creating, converting, and debugging Livewire components so your reactive Laravel UI works correctly the first time. ## Core Features & Use Cases - Component Creation & Format Conversion: Generate single-file (SFC), multi-file (MFC), class-based, and full-page components with the correct artisan commands, and convert between formats using livewire:convert. - Livewire 4 Migration & New Features: Apply v4-specific patterns including islands, async actions, deferred loading, wire:sort, wire:intersect, and the new JavaScript interceptor system. - Debugging & Best Practices: Diagnose reactivity issues, enforce wire:key usage, configure loading states, and test components with Livewire::test(). - Use Case: You are upgrading a Laravel app from Livewire 3 to 4 and need to update wire:model behavior, rename config keys, and convert class-based components to the new single-file format without breaking existing pages. ## Quick Start Ask the assistant to create a Livewire 4 single-file component for a task list with real-time search filtering and loading states.

Frequently Asked Questions about livewire-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Livewire 4 component in Laravel?▼

Run `php artisan make:livewire create-post` to generate a single-file component at resources/views/components/⚡create-post.blade.php. Use `--mfc` for multi-file format, `--class` for v3-style class-based components, or `pages::name` for full-page components.

How to migrate from Livewire 3 to Livewire 4?▼

Update routes to use `Route::livewire()`, rename config keys like `layout` to `component_layout`, and note that `wire:model` now ignores child events by default. Use `php artisan livewire:convert` to migrate components between old and new formats.

What is the difference between SFC, MFC, and class-based Livewire components?▼

Single-file components combine PHP and Blade in one Blade file, multi-file components split them into separate .php and .blade.php files in one directory, and class-based components use app/Livewire classes with separate views. Always follow your project's existing convention first.

Why is wire:model not updating in real time in Livewire 4?▼

In Livewire 4, `wire:model` is deferred by default and only syncs on action. Use `wire:model.live` for real-time updates as the user types, or `wire:model.deep` if you need the old child-event behavior.

Does Livewire 4 require a separate Alpine.js installation?▼

No, Alpine.js is bundled with Livewire 4 and should not be included separately. Including it again causes conflicts and unexpected behavior in your components.

Why do my Livewire loops re-render incorrectly?▼

Missing `wire:key` attributes on `@foreach` loop elements cause unexpected re-rendering and state loss. Add a unique `wire:key` to every looped element so Livewire can track DOM nodes correctly.