重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/fusengine/agents --skill laravel-livewire在进行任何实现之前,使用 TeamCreate 生成 3 个代理:
实现后,运行 fuse-ai-pilot:sniper 进行验证。
| 功能 | 描述 |
|---|---|
| 组件 | 带有 Blade 视图的响应式 PHP 类 |
| wire:model | 双向数据绑定 |
| 操作 | 从前端调用 PHP 方法 |
| 事件 | 组件间通信 |
| Volt | 单文件组件 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| Folio | 基于文件的路由 |
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
| 主题 | 参考 | 何时查阅 |
|---|---|---|
| 组件 | components.md | 创建组件时 |
| Wire 指令 | wire-directives.md | 数据绑定、事件处理时 |
| 生命周期 | lifecycle.md | 使用钩子、mount、hydrate 时 |
| 表单 | forms-validation.md | 验证、表单对象时 |
| 事件 | events.md | 派发、监听事件时 |
| Alpine | alpine-integration.md | 使用 $wire、@entangle 时 |
| 文件上传 | file-uploads.md | 处理上传时 |
| 嵌套 | nesting.md | 父子组件时 |
| 加载状态 | loading-states.md | 使用 wire:loading、lazy 时 |
| 导航 | navigation.md | SPA 模式时 |
| 测试 | testing.md | 组件测试时 |
| 安全 | security.md | 认证、限流时 |
| Volt | volt.md | 单文件组件时 |
| 主题 | 参考 | 何时查阅 |
|---|---|---|
| Folio | folio.md | 基于文件的路由时 |
| Precognition | precognition.md | 实时验证时 |
| Reverb | reverb.md | WebSockets 时 |
| 模板 | 何时使用 |
|---|---|
| BasicComponent.php.md | 标准组件 |
| FormComponent.php.md | 带验证的表单 |
| VoltComponent.blade.md | Volt 模式 |
| DataTableComponent.php.md | 带搜索/排序的表格 |
| FileUploadComponent.php.md | 文件上传 |
| NestedComponents.php.md | 父子组件 |
| ComponentTest.php.md | 测试模式 |
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>
每周安装量
63
代码仓库
GitHub 星标
4
首次出现
2026年2月1日
安全审计
安装于
gemini-cli61
opencode61
codex58
github-copilot57
cursor56
amp55
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 |
| 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 |
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>
Weekly Installs
63
Repository
GitHub Stars
4
First Seen
Feb 1, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli61
opencode61
codex58
github-copilot57
cursor56
amp55
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
122,000 周安装
| 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 |
| Testing patterns |