athphane/filament-support
athphane/filament-support offers reusable helpers, macros, and utilities for Laravel Filament applications. It streamlines common admin panel tasks, reduces boilerplate, and provides convenience functions for building resources, forms, and tables more efficiently.
config/filament-support.php. All modifier groups default to true; disable only the Filament surfaces you do not want the package to modify.php artisan config:clear. If Filament assets appear stale, run php artisan filament:assets.status to PublishStatuses, use PublishStatusSelect in a form, display the enum label/color/icon in tables, and use Coordinate/CoordinateMap for geo-enabled records.use Vendor\Package\Enums\PublishStatuses;
protected $casts = [
'status' => PublishStatuses::class,
];
Coordinate for Google Maps coordinate picking, PublishStatusSelect for draft/pending/published/rejected workflows, and SpatieMediaLibraryFileUpload for media-library-backed uploads. Configure visibility explicitly on uploads when your disk requires it.Coordinate::make('coordinates');
PublishStatusSelect::make('status')->required();
SpatieMediaLibraryFileUpload::make('hero')->visibility('public');
CoordinateMap with records that store coordinates. It is read-only, so use it on view/detail pages rather than edit forms.PublishStatuses as the single source of truth for status labels, colors, and icons. In Filament tables or badges, format the enum state through its label/color/icon helpers instead of duplicating status maps.FilamentAdminUrls trait to models or resources where you need to generate admin URLs for records, for example in notifications, custom actions, or dashboard widgets.modifiers.* toggles enabled unless your app already defines competing macros/components. Disable only the affected group, e.g. modifiers.tables, rather than removing the whole package.Coordinate/CoordinateMap; then wire enum casts and trait usage into resources.config/filament-support.php or related environment variables, redeploy with a fresh config cache and verify the toggle actually changed.hiddenOnRelationManager fix affects relation-manager visibility. Re-test resources with multiple relation managers if you rely on hiding fields there.settings() helper. If your app previously worked around that, remove any unnecessary workaround and verify no local helper conflicts remain.SpatieMediaLibraryFileUpload does not replace Spatie Media Library setup. Ensure the media model, disk, visibility, and conversions are configured in your app.Coordinate and CoordinateMap likely depend on Google Maps configuration. Check API key restrictions, CSP rules, and domain allowlists if the map renders blank or the picker fails.php artisan filament:assets. Pin v1.0.0 and smoke-test forms, tables, infolists, and relation managers in staging before rollout.How can I help you explore Laravel packages today?