filament-pro by marcelorodrigo/agent-skills
npx skills add https://github.com/marcelorodrigo/agent-skills --skill filament-pro使用 Filament v5 基于 Schemas 和 Livewire v4 响应式的服务器驱动 UI,构建功能强大的 Laravel 管理面板。
Filament v5 是一个 Laravel 管理面板框架,通过声明式的 PHP API 提供完整的 CRUD 界面、表单、表格和仪表板组件。它构建在 Livewire v4 之上,无需编写 JavaScript 即可提供实时响应性。
通过 Composer 安装 Filament 并搭建面板:
composer require filament/filament:"^5.0" -W
php artisan filament:install --scaffold
npm install && npm run dev
php artisan make:filament-user
这将创建开始构建所需的面板提供者、目录结构和资源。
app/
Filament/
Resources/ # 包含表单和表格的 CRUD 资源
Pages/ # 自定义页面
Widgets/ # 仪表板组件
Providers/
Filament/
AdminPanelProvider.php
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
PanelProvider 是管理面板的入口点。它配置:
资源通过以下方式提供完整的 CRUD 界面:
表单采用基于 Schema 的方法,您可以将字段声明为 PHP 对象:
表格显示数据,并提供广泛的定制选项:
操作是触发以下功能的交互式按钮:
仪表板组件包括:
Filament 使用 Pest PHP 和 Livewire 测试助手:
通过以下方式实现访问控制:
Filament 采用服务器驱动方法,后端通过 Schemas 定义 UI 结构。PHP 代码描述表单、表格和布局,Filament 将其渲染为 Livewire 组件。
Schemas 是定义以下内容的 PHP 配置对象:
所有组件都作为 Livewire 组件挂载,提供:
该框架鼓励采用资源优先的方法:
| 命令 | 用途 |
|---|---|
filament:install --scaffold | 安装 Filament 并搭建面板 |
make:filament-resource | 创建 CRUD 资源 |
make:filament-page | 创建自定义页面 |
make:filament-widget | 创建仪表板组件 |
make:filament-panel | 创建附加面板 |
make:filament-user | 创建管理员用户 |
make:filament-relation-manager | 创建关系管理器 |
filament:cache-components | 生产环境缓存 |
每个组件的完整文档:
查看 examples.md 获取完整的工作代码示例,包括:
getEloquentQuery() 来预加载关联关系,防止 N+1 查询filament:cache-components 启用组件缓存app/Filament/Admin/Resources/Filament 非常适合:
版本 : 1.0.0
许可证 : MIT
兼容性 : Laravel 11+, PHP 8.2+, Livewire v4
每周安装量
292
仓库
GitHub 星标数
6
首次出现
2026年1月31日
安全审计
安装于
opencode268
github-copilot250
codex243
gemini-cli239
amp229
kimi-cli228
Build powerful Laravel admin panels using Filament v5's server-driven UI with Schemas and Livewire v4 reactivity.
Filament v5 is a Laravel admin panel framework that provides complete CRUD interfaces, forms, tables, and dashboard components through a declarative PHP API. Built on Livewire v4, it offers real-time reactivity without writing JavaScript.
Install Filament via Composer and scaffold a panel:
composer require filament/filament:"^5.0" -W
php artisan filament:install --scaffold
npm install && npm run dev
php artisan make:filament-user
This creates the panel provider, directory structure, and assets needed to start building.
app/
Filament/
Resources/ # CRUD resources with forms and tables
Pages/ # Custom pages
Widgets/ # Dashboard widgets
Providers/
Filament/
AdminPanelProvider.php
The PanelProvider is the entry point for your admin panel. It configures:
Resources provide complete CRUD interfaces through:
Forms use a schema-based approach where you declare fields as PHP objects:
Tables display data with extensive customization:
Actions are interactive buttons that trigger:
Dashboard widgets include:
Filament uses Pest PHP with Livewire testing helpers:
Access control through:
Filament uses a server-driven approach where the backend defines the UI structure through schemas. The PHP code describes forms, tables, and layouts which Filament renders as Livewire components.
Schemas are PHP configuration objects that define:
All components mount as Livewire components, providing:
The framework encourages a resource-first approach:
| Command | Purpose |
|---|---|
filament:install --scaffold | Install Filament with panel scaffolding |
make:filament-resource | Create CRUD resource |
make:filament-page | Create custom page |
make:filament-widget | Create dashboard widget |
make:filament-panel | Create additional panel |
make:filament-user |
Comprehensive documentation for each component:
See examples.md for complete working code examples including:
getEloquentQuery() to eager load relationships and prevent N+1 queriesfilament:cache-componentsapp/Filament/Admin/Resources/Filament is ideal for:
Version : 1.0.0
License : MIT
Compatibility : Laravel 11+, PHP 8.2+, Livewire v4
Weekly Installs
292
Repository
GitHub Stars
6
First Seen
Jan 31, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode268
github-copilot250
codex243
gemini-cli239
amp229
kimi-cli228
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装
| Create admin user |
make:filament-relation-manager | Create relation manager |
filament:cache-components | Cache for production |