scaffold-filament-page
4
总安装量
4
周安装量
#53910
全站排名
安装命令
npx skills add https://github.com/iurygdeoliveira/labsis-kit --skill scaffold-filament-page
Agent 安装分布
claude-code
3
windsurf
2
opencode
2
antigravity
2
gemini-cli
2
Skill 文档
Scaffold Filament Page
Use this skill when you need a dashboard, settings page, or report view that is NOT attached to a specific Model Resource.
Context
Custom pages are useful for “dashboard” like views, settings, or tools that don’t map 1:1 to a database record.
Tools
scaffold-filament-resource: Use that skill if the page IS attached to a model.
Rules
1. Navigation Grouping
- Always define
protected static ?string $navigationGroup = 'Settings';(or appropriate group). - Use
protected static ?int $navigationSortto order items.
2. View Construction
- Use standard Filament widgets or Blade components within the
view(). - If custom HTML is needed, use standard Tailwind classes (v4).
3. Authorization
- Add
mount()check usingabort_unless(auth()->user()->can('view_page'), 403);or similar Policy check.
4. Title & Breadcrumbs
- Customize title:
protected static ?string $title = 'Custom Title';
Workflow
- Check for Clusters: Ask if this page belongs to an existing Cluster (e.g.,
Settings). - Create Page:
php artisan make:filament-page [PageName] --cluster=[ClusterName] - Define Cluster/Group: If not using clusters, use
$navigationGroup.