Build and work with Filament Benefit features, including the Benefit resource and panel configuration.
php artisan boost:add-skill jeffersongoncalves/filament-benefit
Save this content to: .claude/skills/filament-benefit-development/SKILL.md
# Filament Benefit Development
## When to use this skill
Use this skill when:
- Integrating Filament Benefit into a panel
- Customizing the Benefit resource
- Overriding the resource class via config
## Configuration
### Basic Setup
```php
use JeffersonGoncalves\FilamentBenefit\FilamentBenefitPlugin;
FilamentBenefitPlugin::make()
->navigationGroup('Perks');
```
### Overriding the Resource
```php
// config/filament-benefit.php
return [
'resources' => [
'benefit' => \App\Filament\Resources\Benefits\CustomBenefitResource::class,
],
];
```
## Resources
### BenefitResource
Model: `JeffersonGoncalves\Benefit\Models\Benefit`. Fields: `name` (translatable), `description` (translatable), `slug`.
## Troubleshooting
### Plugin not registered
**Cause**: Plugin not added to PanelProvider.
**Solution**: Add `FilamentBenefitPlugin::make()` to the `plugins()` array in your PanelProvider.
### Locale switcher missing on Create/Edit/List pages
**Cause**: `FilamentTranslatablePlugin` not registered in the same panel.
**Solution**: Add `FilamentTranslatablePlugin::make()` alongside `FilamentBenefitPlugin::make()` in the panel's `plugins()` array.
Use this skill when:
use JeffersonGoncalves\FilamentBenefit\FilamentBenefitPlugin;
FilamentBenefitPlugin::make()
->navigationGroup('Perks');
// config/filament-benefit.php
return [
'resources' => [
'benefit' => \App\Filament\Resources\Benefits\CustomBenefitResource::class,
],
];
Model: JeffersonGoncalves\Benefit\Models\Benefit. Fields: name (translatable), description (translatable), slug.
Cause: Plugin not added to PanelProvider.
Solution: Add FilamentBenefitPlugin::make() to the plugins() array in your PanelProvider.
Cause: FilamentTranslatablePlugin not registered in the same panel.
Solution: Add FilamentTranslatablePlugin::make() alongside FilamentBenefitPlugin::make() in the panel's plugins() array.
How can I help you explore Laravel packages today?