[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77NDSVMR88QCTD52WBBM72V":3,"skill-same:01M77NDSVMR88QCTD52WBBM72V":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M77NDSVMR88QCTD52WBBM72V","olakunlevpn-filament-skills",null,"Use when writing, reviewing, or refactoring Filament PHP v5 code -- resources, forms, tables, infolists, actions, widgets, panels, relation managers, multi-tenancy, testing, or plugin development. Always apply these standards to all Filament work.","w1do\u002Fcontent-backend","w1do","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F122446147?v=4","01M77N9PAY1Z1RMN8S3936Q9Y9","W1DO DIGITAL","01M77N9PBRQG10QM0Z8WFRAK25",1,"MIT","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Folakunlevpn-filament-skills\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Folakunlevpn-filament-skills\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: olakunlevpn-filament-skills\ndescription: Use when writing, reviewing, or refactoring Filament PHP v5 code -- resources, forms, tables, infolists, actions, widgets, panels, relation managers, multi-tenancy, testing, or plugin development. Always apply these standards to all Filament work.\n---\n\n# Filament PHP v5 Coding Standards\n\nComprehensive standards for building production-grade Filament v5 admin panels. Filament v5 requires PHP 8.3+, Laravel 13+, Livewire 4+, Tailwind CSS 4.1+. Follow these rules exactly. For detailed code examples, see REFERENCE.md.\n\n## When to Apply\n\nApply to ALL Filament work: resources, forms, tables, infolists, actions, widgets, dashboards, panels, relation managers, imports\u002Fexports, custom pages, multi-tenancy, testing, and deployment.\n\n---\n\n## 1. Project Structure\n\n### Directory Layout\n- Domain-grouped, plural-named: `Resources\u002FShop\u002F`, `Resources\u002FBlog\u002F`, `Resources\u002FHR\u002F`\n- Resources in plural directories: `Resources\u002FShop\u002FProducts\u002FProductResource.php`\n- Schemas extracted: `Resources\u002FShop\u002FProducts\u002FSchemas\u002FProductSchema.php`\n- Tables extracted: `Resources\u002FShop\u002FProducts\u002FTables\u002FProductsTable.php`\n- Multiple panels: `Providers\u002FFilament\u002FAdminPanelProvider.php`, `AppPanelProvider.php`\n\n### Resource Complexity Tiers\n- **Simple** (ManageRecords) -- modal CRUD, single page, no relation managers\n- **Standard** (List+Create+Edit) -- separate pages, basic CRUD\n- **Full** (List+Create+Edit+View) -- sub-navigation, relation managers, widgets\n\n### Naming Rules\n- Plural resource directories: `Products\u002F`, not `Product\u002F`\n- File names match class names: `ProductResource.php`\n- Slugs kebab-case: `order-items`\n- Namespace matches directory path exactly\n\n---\n\n## 2. Resource Architecture\n\n### Delegation Pattern\nResources delegate to dedicated Schema and Table classes. Keep resource classes slim.\n\n```php\nclass ProductResource extends Resource\n{\n    protected static ?string $model = Product::class;\n    protected static ?string $slug = 'products';\n    protected static ?string $recordTitleAttribute = 'name';\n    protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedShoppingBag;\n    protected static ?string $navigationGroup = 'Shop';\n    protected static ?int $navigationSort = 1;\n\n    public static function form(Schema $schema): Schema\n    {\n        return ProductSchema::configure($schema);\n    }\n\n    public static function table(Table $table): Table\n    {\n        return ProductsTable::configure($table);\n    }\n}\n```\n\n### Key Rules\n- Always set `$recordTitleAttribute` for global search\n- Navigation icons: always `Heroicon::Outlined*` (not Solid for nav)\n- Use `Heroicon` enum, never string icon names\n- All actions import from `Filament\\Actions\\*` namespace only\n- Table methods: `recordActions()` not `actions()`, `groupedBulkActions()` not `bulkActions()`\n\n---\n\n## 3. Form Design\n\n- Top-level: `$schema->components([...])` with `Section` wrapping\n- Section from `Filament\\Schemas\\Components\\Section`\n- Layout components (Section, Grid, Tabs, Flex) from `Filament\\Schemas\\Components\\*`\n- Slug fields: `->live(onBlur: true)`, create-only via `Operation::Create`, `->disabled()->dehydrated()`\n- Selects with relationships: always `->searchable()` and `->preload()`\n- File uploads: set `->disk()`, `->directory()`, `->visibility()`\n- Use `Operation` enum for conditional logic: `Operation::Create`, `Operation::Edit`\n- Repeaters for line items with calculated fields\n- Tabs for complex multi-section forms\n- All text labels via language files, never hardcoded\n\n---\n\n## 4. Table Design\n\n- Columns: TextColumn, IconColumn (booleans), BadgeColumn (enums), ImageColumn\n- Toggleable columns: `->toggleable(isToggledHiddenByDefault: true)` for less important columns\n- Filters: SelectFilter, TernaryFilter (boolean), date range via custom filter\n- Actions wrapped in `ActionGroup`: View, Edit, Delete grouped\n- Bulk actions via `groupedBulkActions()`: delete, export, status change\n- Toolbar actions via `toolbarActions()`: create, import, export\n- Default sort: `->defaultSort('created_at', 'desc')`\n- Searchable columns: `->searchable()` on key text columns\n- Money: `->money('USD')` or `->formatStateUsing()` for custom formatting\n\n---\n\n## 5. Infolist (View) Patterns\n\n- Entry types: TextEntry, IconEntry (boolean), ImageEntry, BadgeEntry (enum)\n- Inline labels for compact display: `->inlineLabel()`\n- Rich content: `->prose()->markdown()` for formatted text\n- Tabs for complex view pages\n- Contextual actions on view pages with visibility conditions\n- Key-value entries for metadata\n\n---\n\n## 6. Enum Design System\n\nEvery status\u002Ftype\u002Fcategory uses a PHP 8.1 backed string enum implementing Filament contracts:\n- `HasLabel` -- display name\n- `HasColor` -- semantic color\n- `HasIcon` -- Heroicon\n\n**Semantic colors:** success (positive), danger (negative), warning (caution), info (new), primary (special), gray (neutral)\n\n**Naming:** PascalCase case names, snake_case backed values. Cast in model: `'status' => OrderStatus::class`\n\n---\n\n## 7. Actions & Notifications\n\n- All actions: `Filament\\Actions\\Action`, `Filament\\Actions\\CreateAction`, etc.\n- Never import from `Filament\\Tables\\Actions\\*` (removed in v5)\n- Action modals use `->schema()` not `->form()`\n- ActionGroup ordering: View, Edit, Delete (most common first)\n- Notifications: `Notification::make()->title()->success()->send()`\n- Refresh after action: `$this->dispatch('$refresh')` or return redirect\n- Bulk actions: `->authorizeIndividualRecords()` for policy-gated bulk operations\n\n---\n\n## 8. Relation Managers\n\n- Standard: extend `RelationManager`, define `form()` and `table()`\n- Alternative: `ManageRelatedRecords` page for complex relations\n- Action placement: `headerActions` (create), `recordActions` (per row), `groupedBulkActions` (selected)\n- Reuse across resources when the same relation appears in multiple places\n- Default sort on related records\n\n---\n\n## 9. Widgets & Dashboards\n\n- **StatsOverview**: multiple stat cards, optional inline charts, descriptions, icons\n- **Chart widgets**: line, bar, doughnut, pie -- extend `ChartWidget`\n- **Lazy loading**: on by default (`$isLazy = true`)\n- **Polling**: default 5s, customize via `$pollingInterval` or `null` to disable\n- **Dashboard filters**: implement `HasFiltersForm` for filterable dashboards\n- **Resource page widgets**: use `ExposesTableToWidgets` trait\n- Widget sort order via `$sort` property\n\n---\n\n## 10. Multi-Tenancy\n\n- Panel: `->tenant(Team::class)` in PanelProvider\n- User model: implement `HasTenants` with `getTenants()` and `canAccessTenant()`\n- Automatic query scoping on all resources (opt-out with `$isScopedToTenant = false`)\n- **CRITICAL**: Form selects are NOT auto-scoped -- add `modifyQueryUsing` with `Filament::getTenant()`\n- Validation: use `->scopedUnique()` and `->scopedExists()` for tenant-aware rules\n- Domain-based: `->tenantDomain('{tenant:slug}.example.com')`\n- Path-based with slug: `->tenant(Team::class, slugAttribute: 'slug')`\n- Registration page: extend `RegisterTenant`\n- Profile page: extend `EditTenantProfile`\n\n---\n\n## 11. Multi-Panel Architecture\n\n- Separate PanelProvider per panel (admin, app, vendor)\n- Each panel: own auth, resources, pages, widgets, middleware, theme\n- `FilamentUser::canAccessPanel()` controls per-panel access\n- Shared config via Plugin class or static helper\n- `Filament::setCurrentPanel('app')` for testing non-default panels\n\n---\n\n## 12. Custom Pages & Clusters\n\n- Custom pages: `php artisan make:filament-page Settings`\n- Access control: `canAccess()` method\n- Header actions, header\u002Ffooter widgets, widget data passing\n- Clusters: group related pages under sub-navigation\n- `SubNavigationPosition::Top` for horizontal tabs\n- Resource sub-navigation: `getRecordSubNavigation()` for View\u002FEdit\u002FRelated pages\n\n---\n\n## 13. Testing (Pest + Livewire)\n\n- Test via `livewire(PageClass::class)` -- pages are Livewire components\n- Auth: `actingAs(User::factory()->create())` in `beforeEach`\n- Multi-tenant: `Filament::setTenant($team)` + `Filament::bootCurrentPanel()`\n- Multi-panel: `Filament::setCurrentPanel('admin')`\n\n**Key test patterns:**\n- List: `->assertCanSeeTableRecords()`, `->searchTable()`, `->sortTable()`, `->filterTable()`\n- Create: `->fillForm([...])->call('create')->assertHasNoFormErrors()->assertNotified()`\n- Edit: `->assertSchemaStateSet([...])->fillForm([...])->call('save')`\n- Actions: `->callAction(TestAction::make('send')->table($record))`\n- Bulk: `->selectTableRecords($ids)->callAction(TestAction::make('delete')->table()->bulk())`\n- Relations: `livewire(RelationManager::class, ['ownerRecord' => $record, 'pageClass' => EditPage::class])`\n\n---\n\n## 14. Import & Export\n\n- Exporter: `ExportColumn` definitions, placed in `app\u002FFilament\u002FExports\u002F`\n- Importer: `ImportColumn` with rules, examples, casting, relationship resolution\n- Actions: `ExportAction::make()`, `ImportAction::make()` in toolbar\n- Record resolution: `firstOrNew`, `new Model`, or `null` to skip\n\n---\n\n## 15. Authorization\n\n- `FilamentUser` interface required in production (APP_ENV != local)\n- Model policies auto-discovered: `viewAny`, `create`, `update`, `delete`, `restore`, `forceDelete`, `reorder`\n- Skip authorization: `$shouldSkipAuthorization = true`\n- Bulk action authorization: `->authorizeIndividualRecords()`\n- Per-panel access: `canAccessPanel(Panel $panel)` with panel ID check\n\n---\n\n## 16. Performance & Deployment\n\n**Production:**\n```\nphp artisan optimize\nphp artisan filament:optimize\n```\n\n**Panel config:**\n- `->spa()` for SPA mode\n- `->unsavedChangesAlerts()` for data protection\n- `->databaseTransactions()` for action safety\n\n**Widgets:** Lazy by default. Set polling interval or `null` to disable. Use `wire:init` for deferred API loads.\n\n**Never run `filament:optimize` in local dev** -- new components won't be discovered.\n\n**Tailwind v4:** CSS-based config via Vite plugin. No `tailwind.config.js`. Use `@source` directives.\n\n---\n\n## 17. Livewire 4 Features (via Filament v5)\n\n- **Islands**: isolated re-render regions with `@island` directive\n- **Async actions**: `#[Async]` attribute for fire-and-forget (analytics, logging)\n- **wire:model.deep**: required when relying on child element event bubbling\n- **wire:sort**: built-in drag-and-drop without external packages\n- **Parallel requests**: `wire:model.live` no longer blocks\n- **Self-closing tags required**: `\u003Clivewire:component \u002F>`\n\n---\n\n## 18. Strict Rules\n\n- Never publish Blade views. Use CSS hooks with `fi-` prefix.\n- Never hardcode brand names, logos, currency. Use dynamic settings.\n- All user-facing text through language files and translation keys.\n- `$recordTitleAttribute` set on every resource.\n- Action modals: `->schema()` not `->form()`\n- Table: `recordActions()` not `actions()`, `groupedBulkActions()` not `bulkActions()`\n- Schema: `$schema->components([...])` at top level\n- Icons: `Heroicon::` enum only, never string names\n- Operation: `Operation::Create`, `Operation::Edit`, never string comparisons\n\n## Summary Checklist\n\n- [ ] Resource delegates to Schema and Table classes\n- [ ] `$recordTitleAttribute` set on every resource\n- [ ] `Heroicon::` enum for all icons, `Outlined` for navigation\n- [ ] All actions from `Filament\\Actions\\*` namespace\n- [ ] Table uses `recordActions()`, `groupedBulkActions()`, `toolbarActions()`\n- [ ] Enums implement HasLabel, HasColor, HasIcon with semantic colors\n- [ ] Form selects are searchable and preloaded\n- [ ] Multi-tenant form selects manually scoped to tenant\n- [ ] `FilamentUser` interface implemented with `canAccessPanel()`\n- [ ] Model policies for authorization on every resource\n- [ ] `filament:optimize` in production deploy script\n- [ ] Tests use `livewire()` with `Filament::setTenant()` for multi-tenant\n- [ ] No hardcoded text -- all through language files\n- [ ] No published Blade views -- CSS hooks only\n","# Filament PHP v5 Coding Standards\n\nComprehensive standards for building production-grade Filament v5 admin panels. Filament v5 requires PHP 8.3+, Laravel 13+, Livewire 4+, Tailwind CSS 4.1+. Follow these rules exactly. For detailed code examples, see REFERENCE.md.\n\n## When to Apply\n\nApply to ALL Filament work: resources, forms, tables, infolists, actions, widgets, dashboards, panels, relation managers, imports\u002Fexports, custom pages, multi-tenancy, testing, and deployment.\n\n---\n\n## 1. Project Structure\n\n### Directory Layout\n- Domain-grouped, plural-named: `Resources\u002FShop\u002F`, `Resources\u002FBlog\u002F`, `Resources\u002FHR\u002F`\n- Resources in plural directories: `Resources\u002FShop\u002FProducts\u002FProductResource.php`\n- Schemas extracted: `Resources\u002FShop\u002FProducts\u002FSchemas\u002FProductSchema.php`\n- Tables extracted: `Resources\u002FShop\u002FProducts\u002FTables\u002FProductsTable.php`\n- Multiple panels: `Providers\u002FFilament\u002FAdminPanelProvider.php`, `AppPanelProvider.php`\n\n### Resource Complexity Tiers\n- **Simple** (ManageRecords) -- modal CRUD, single page, no relation managers\n- **Standard** (List+Create+Edit) -- separate pages, basic CRUD\n- **Full** (List+Create+Edit+View) -- sub-navigation, relation managers, widgets\n\n### Naming Rules\n- Plural resource directories: `Products\u002F`, not `Product\u002F`\n- File names match class names: `ProductResource.php`\n- Slugs kebab-case: `order-items`\n- Namespace matches directory path exactly\n\n---\n\n## 2. Resource Architecture\n\n### Delegation Pattern\nResources delegate to dedicated Schema and Table classes. Keep resource classes slim.\n\n```php\nclass ProductResource extends Resource\n{\n    protected static ?string $model = Product::class;\n    protected static ?string $slug = 'products';\n    protected static ?string $recordTitleAttribute = 'name';\n    protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedShoppingBag;\n    protected static ?string $navigationGroup = 'Shop';\n    protected static ?int $navigationSort = 1;\n\n    public static function form(Schema $schema): Schema\n    {\n        return ProductSchema::configure($schema);\n    }\n\n    public static function table(Table $table): Table\n    {\n        return ProductsTable::configure($table);\n    }\n}\n```\n\n### Key Rules\n- Always set `$recordTitleAttribute` for global search\n- Navigation icons: always `Heroicon::Outlined*` (not Solid for nav)\n- Use `Heroicon` enum, never string icon names\n- All actions import from `Filament\\Actions\\*` namespace only\n- Table methods: `recordActions()` not `actions()`, `groupedBulkActions()` not `bulkActions()`\n\n---\n\n## 3. Form Design\n\n- Top-level: `$schema->components([...])` with `Section` wrapping\n- Section from `Filament\\Schemas\\Components\\Section`\n- Layout components (Section, Grid, Tabs, Flex) from `Filament\\Schemas\\Components\\*`\n- Slug fields: `->live(onBlur: true)`, create-only via `Operation::Create`, `->disabled()->dehydrated()`\n- Selects with relationships: always `->searchable()` and `->preload()`\n- File uploads: set `->disk()`, `->directory()`, `->visibility()`\n- Use `Operation` enum for conditional logic: `Operation::Create`, `Operation::Edit`\n- Repeaters for line items with calculated fields\n- Tabs for complex multi-section forms\n- All text labels via language files, never hardcoded\n\n---\n\n## 4. Table Design\n\n- Columns: TextColumn, IconColumn (booleans), BadgeColumn (enums), ImageColumn\n- Toggleable columns: `->toggleable(isToggledHiddenByDefault: true)` for less important columns\n- Filters: SelectFilter, TernaryFilter (boolean), date range via custom filter\n- Actions wrapped in `ActionGroup`: View, Edit, Delete grouped\n- Bulk actions via `groupedBulkActions()`: delete, export, status change\n- Toolbar actions via `toolbarActions()`: create, import, export\n- Default sort: `->defaultSort('created_at', 'desc')`\n- Searchable columns: `->searchable()` on key text columns\n- Money: `->money('USD')` or `->formatStateUsing()` for custom formatting\n\n---\n\n## 5. Infolist (View) Patterns\n\n- Entry types: TextEntry, IconEntry (boolean), ImageEntry, BadgeEntry (enum)\n- Inline labels for compact display: `->inlineLabel()`\n- Rich content: `->prose()->markdown()` for formatted text\n- Tabs for complex view pages\n- Contextual actions on view pages with visibility conditions\n- Key-value entries for metadata\n\n---\n\n## 6. Enum Design System\n\nEvery status\u002Ftype\u002Fcategory uses a PHP 8.1 backed string enum implementing Filament contracts:\n- `HasLabel` -- display name\n- `HasColor` -- semantic color\n- `HasIcon` -- Heroicon\n\n**Semantic colors:** success (positive), danger (negative), warning (caution), info (new), primary (special), gray (neutral)\n\n**Naming:** PascalCase case names, snake_case backed values. Cast in model: `'status' => OrderStatus::class`\n\n---\n\n## 7. Actions & Notifications\n\n- All actions: `Filament\\Actions\\Action`, `Filament\\Actions\\CreateAction`, etc.\n- Never import from `Filament\\Tables\\Actions\\*` (removed in v5)\n- Action modals use `->schema()` not `->form()`\n- ActionGroup ordering: View, Edit, Delete (most common first)\n- Notifications: `Notification::make()->title()->success()->send()`\n- Refresh after action: `$this->dispatch('$refresh')` or return redirect\n- Bulk actions: `->authorizeIndividualRecords()` for policy-gated bulk operations\n\n---\n\n## 8. Relation Managers\n\n- Standard: extend `RelationManager`, define `form()` and `table()`\n- Alternative: `ManageRelatedRecords` page for complex relations\n- Action placement: `headerActions` (create), `recordActions` (per row), `groupedBulkActions` (selected)\n- Reuse across resources when the same relation appears in multiple places\n- Default sort on related records\n\n---\n\n## 9. Widgets & Dashboards\n\n- **StatsOverview**: multiple stat cards, optional inline charts, descriptions, icons\n- **Chart widgets**: line, bar, doughnut, pie -- extend `ChartWidget`\n- **Lazy loading**: on by default (`$isLazy = true`)\n- **Polling**: default 5s, customize via `$pollingInterval` or `null` to disable\n- **Dashboard filters**: implement `HasFiltersForm` for filterable dashboards\n- **Resource page widgets**: use `ExposesTableToWidgets` trait\n- Widget sort order via `$sort` property\n\n---\n\n## 10. Multi-Tenancy\n\n- Panel: `->tenant(Team::class)` in PanelProvider\n- User model: implement `HasTenants` with `getTenants()` and `canAccessTenant()`\n- Automatic query scoping on all resources (opt-out with `$isScopedToTenant = false`)\n- **CRITICAL**: Form selects are NOT auto-scoped -- add `modifyQueryUsing` with `Filament::getTenant()`\n- Validation: use `->scopedUnique()` and `->scopedExists()` for tenant-aware rules\n- Domain-based: `->tenantDomain('{tenant:slug}.example.com')`\n- Path-based with slug: `->tenant(Team::class, slugAttribute: 'slug')`\n- Registration page: extend `RegisterTenant`\n- Profile page: extend `EditTenantProfile`\n\n---\n\n## 11. Multi-Panel Architecture\n\n- Separate PanelProvider per panel (admin, app, vendor)\n- Each panel: own auth, resources, pages, widgets, middleware, theme\n- `FilamentUser::canAccessPanel()` controls per-panel access\n- Shared config via Plugin class or static helper\n- `Filament::setCurrentPanel('app')` for testing non-default panels\n\n---\n\n## 12. Custom Pages & Clusters\n\n- Custom pages: `php artisan make:filament-page Settings`\n- Access control: `canAccess()` method\n- Header actions, header\u002Ffooter widgets, widget data passing\n- Clusters: group related pages under sub-navigation\n- `SubNavigationPosition::Top` for horizontal tabs\n- Resource sub-navigation: `getRecordSubNavigation()` for View\u002FEdit\u002FRelated pages\n\n---\n\n## 13. Testing (Pest + Livewire)\n\n- Test via `livewire(PageClass::class)` -- pages are Livewire components\n- Auth: `actingAs(User::factory()->create())` in `beforeEach`\n- Multi-tenant: `Filament::setTenant($team)` + `Filament::bootCurrentPanel()`\n- Multi-panel: `Filament::setCurrentPanel('admin')`\n\n**Key test patterns:**\n- List: `->assertCanSeeTableRecords()`, `->searchTable()`, `->sortTable()`, `->filterTable()`\n- Create: `->fillForm([...])->call('create')->assertHasNoFormErrors()->assertNotified()`\n- Edit: `->assertSchemaStateSet([...])->fillForm([...])->call('save')`\n- Actions: `->callAction(TestAction::make('send')->table($record))`\n- Bulk: `->selectTableRecords($ids)->callAction(TestAction::make('delete')->table()->bulk())`\n- Relations: `livewire(RelationManager::class, ['ownerRecord' => $record, 'pageClass' => EditPage::class])`\n\n---\n\n## 14. Import & Export\n\n- Exporter: `ExportColumn` definitions, placed in `app\u002FFilament\u002FExports\u002F`\n- Importer: `ImportColumn` with rules, examples, casting, relationship resolution\n- Actions: `ExportAction::make()`, `ImportAction::make()` in toolbar\n- Record resolution: `firstOrNew`, `new Model`, or `null` to skip\n\n---\n\n## 15. Authorization\n\n- `FilamentUser` interface required in production (APP_ENV != local)\n- Model policies auto-discovered: `viewAny`, `create`, `update`, `delete`, `restore`, `forceDelete`, `reorder`\n- Skip authorization: `$shouldSkipAuthorization = true`\n- Bulk action authorization: `->authorizeIndividualRecords()`\n- Per-panel access: `canAccessPanel(Panel $panel)` with panel ID check\n\n---\n\n## 16. Performance & Deployment\n\n**Production:**\n```\nphp artisan optimize\nphp artisan filament:optimize\n```\n\n**Panel config:**\n- `->spa()` for SPA mode\n- `->unsavedChangesAlerts()` for data protection\n- `->databaseTransactions()` for action safety\n\n**Widgets:** Lazy by default. Set polling interval or `null` to disable. Use `wire:init` for deferred API loads.\n\n**Never run `filament:optimize` in local dev** -- new components won't be discovered.\n\n**Tailwind v4:** CSS-based config via Vite plugin. No `tailwind.config.js`. Use `@source` directives.\n\n---\n\n## 17. Livewire 4 Features (via Filament v5)\n\n- **Islands**: isolated re-render regions with `@island` directive\n- **Async actions**: `#[Async]` attribute for fire-and-forget (analytics, logging)\n- **wire:model.deep**: required when relying on child element event bubbling\n- **wire:sort**: built-in drag-and-drop without external packages\n- **Parallel requests**: `wire:model.live` no longer blocks\n- **Self-closing tags required**: `\u003Clivewire:component \u002F>`\n\n---\n\n## 18. Strict Rules\n\n- Never publish Blade views. Use CSS hooks with `fi-` prefix.\n- Never hardcode brand names, logos, currency. Use dynamic settings.\n- All user-facing text through language files and translation keys.\n- `$recordTitleAttribute` set on every resource.\n- Action modals: `->schema()` not `->form()`\n- Table: `recordActions()` not `actions()`, `groupedBulkActions()` not `bulkActions()`\n- Schema: `$schema->components([...])` at top level\n- Icons: `Heroicon::` enum only, never string names\n- Operation: `Operation::Create`, `Operation::Edit`, never string comparisons\n\n## Summary Checklist\n\n- [ ] Resource delegates to Schema and Table classes\n- [ ] `$recordTitleAttribute` set on every resource\n- [ ] `Heroicon::` enum for all icons, `Outlined` for navigation\n- [ ] All actions from `Filament\\Actions\\*` namespace\n- [ ] Table uses `recordActions()`, `groupedBulkActions()`, `toolbarActions()`\n- [ ] Enums implement HasLabel, HasColor, HasIcon with semantic colors\n- [ ] Form selects are searchable and preloaded\n- [ ] Multi-tenant form selects manually scoped to tenant\n- [ ] `FilamentUser` interface implemented with `canAccessPanel()`\n- [ ] Model policies for authorization on every resource\n- [ ] `filament:optimize` in production deploy script\n- [ ] Tests use `livewire()` with `Filament::setTenant()` for multi-tenant\n- [ ] No hardcoded text -- all through language files\n- [ ] No published Blade views -- CSS hooks only\n",{"name":5,"description":7},"main","5cfcb5a7c17ede079f700eaebe2541a2e8a35b99",".junie\u002Fskills\u002Folakunlevpn-filament-skills",0,"https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend","https:\u002F\u002Fgithub.com\u002Fw1do","https:\u002F\u002Fw1do.ru","Разработчик с использованием AI (Claude, Junie), автоматизация систем, построение сложной архитектуры на Laravel","2026-07-30 04:57:34",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add w1do\u002Fcontent-backend --skill olakunlevpn-filament-skills",{"tool":40,"command":41},"bunx","bunx skills add w1do\u002Fcontent-backend --skill olakunlevpn-filament-skills",{"tool":43,"command":44},"pnpm","pnpm dlx skills add w1do\u002Fcontent-backend --skill olakunlevpn-filament-skills","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Folakunlevpn-filament-skills\u002FSKILL.md",true,[48,53,59],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":16},"LICENSE.md","LICENSE","许可证",1073,{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"README.md","REFERENCE","参考文档",5350,"https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Folakunlevpn-filament-skills\u002FREADME.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"REFERENCE.md",16760,"https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Folakunlevpn-filament-skills\u002FREFERENCE.md",[64,71,78,85,92,99],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":20},"01M77NER3ZH88RF7652A2GPV0N","spatie-version-control","Apply Spatie's version control conventions when creating commits, branches, pull requests, or managing Git repositories; use for naming repos, writing commit messages, choosing branch strategies, and merging code.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Fspatie-version-control\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":20},"01M77NEM7BB0878PKWFZFBFV2A","spatie-security","Apply Spatie's security guidelines when configuring applications, databases, or servers, or when reviewing code for security concerns; use for SSL setup, CSRF protection, password hashing, database permissions, and server hardening.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Fspatie-security\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":20},"01M77NEH0V5W6RZP9VJXRBR9QT","spatie-laravel-php","Apply Spatie's Laravel and PHP coding standards for any task that creates, edits, reviews, refactors, or formats Laravel\u002FPHP code or Blade templates; use for controllers, Eloquent models, routes, config, validation, migrations, tests, and related files to align with Laravel conventions and PSR-12.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Fspatie-laravel-php\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":20},"01M77NECV2J2GTVQ7KDM5X2WC4","spatie-javascript","Apply Spatie's JavaScript coding standards for any task that creates, edits, reviews, refactors, or formats JavaScript or TypeScript code; use for variable declarations, comparisons, functions, destructuring, and Prettier configuration to align with Spatie's JS conventions.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Fspatie-javascript\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":20},"01M77NE4V810CG6DRAKNFEREZ4","sluggable-development","Use when making a field on an Eloquent model sluggable, generating the migration for a slug column, switching to self-healing URLs, or resolving a model from its slug in a route. Trigger when the request mentions slugs, permalinks, the spatie\u002Flaravel-sluggable package, the HasSlug or HasTranslatableSlug trait, the #[Sluggable] attribute, SlugOptions, findBySlug, self-healing URLs, or stale slug redirects in a Laravel project. Covers choosing between the attribute and the trait, generating unique slugs, configuring separator\u002Flength\u002Flanguage\u002Fscope\u002Funiqueness, preventing slug overwrites, translatable slugs via spatie\u002Flaravel-translatable, route model binding through the slug column, self-healing route keys, customizing the 308 redirect through the SelfHealing facade, and overriding the default actions via config\u002Fsluggable.php. Do not use for one-off URL-safe strings, signed URLs, or Laravel's built-in Str::slug helper when the result is not stored on a model.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Fsluggable-development\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":20},"01M77NDMDNMAJ27J9XAQZ3N6X8","medialibrary-development","Build and work with spatie\u002Flaravel-medialibrary features including associating files with Eloquent models, defining media collections and conversions, generating responsive images, and retrieving media URLs and paths.","https:\u002F\u002Fgithub.com\u002Fw1do\u002Fcontent-backend\u002Fblob\u002Fmain\u002F.junie\u002Fskills\u002Fmedialibrary-development\u002FSKILL.md",[],[]]