livewire-development

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

1|Updated Jun 6, 2026
One-click install
npx skills add https://github.com/karuhun-developer/ecommerce --skill livewire-development-karuhun-developer
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: livewire-development
Source: https://github.com/karuhun-developer/ecommerce/tree/main/.cursor/skills/livewire-development
Command: npx skills add https://github.com/karuhun-developer/ecommerce --skill livewire-development-karuhun-developer

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 write outdated or incorrect code. This Skill provides accurate, version-aware guidance for building and maintaining Livewire components in Laravel projects. ## Core Features & Use Cases - Component Creation & Conversion: Generate single-file, multi-file, class-based, or view-based components with artisan commands, and convert between formats using livewire:convert. - Livewire 4 Migration Guidance: Covers breaking changes such as Route::livewire(), renamed config keys, wire:model behavior changes, and new JavaScript interceptor APIs. - Modern Feature Patterns: Implements islands, async actions, deferred loading, wire:sort drag-and-drop, and loading states with correct v4 syntax. - Use Case: When a user asks to add a drag-and-drop sortable list to their Laravel admin panel, this Skill provides the correct wire:sort implementation with proper wire:key usage and testing patterns. ## Quick Start Ask the assistant to create a Livewire component for a specific feature, such as a product search with live filtering, and it will generate the correct Livewire 4 code.

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, which is the default in Livewire 4. Add `--mfc` for a multi-file component or `--class` for the v3-style class-based format.

How to migrate from Livewire 3 to Livewire 4?▼

Key changes include using `Route::livewire()` for full-page components, renamed config keys like `component_layout`, and `wire:model` ignoring child events by default. JavaScript hooks changed to `interceptMessage()` and `interceptRequest()` interceptors.

What is the difference between wire:model and wire:model.live?▼

In Livewire 4, `wire:model` is debounced by default and ignores child events, while `wire:model.live` sends updates instantly on each input. Use `wire:model.deep` if you need the old child-event behavior.

Why is my Livewire loop re-rendering incorrectly?▼

Missing `wire:key` attributes in `@foreach` loops cause unexpected re-rendering behavior. Always add a unique `wire:key` to looped elements so Livewire can track DOM nodes correctly.

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

No, Alpine.js is already bundled with Livewire 4, so including it separately causes conflicts. Livewire 4 also adds magic properties like `$errors` and `$intercept` for JavaScript integration.