coringawc/filament-single-record-resource
Implements the single-record resource pattern for Filament. Replace index lists with a per-user “one record” resource (Profile, Settings, Wallet, Subscription). Traits handle routing, navigation, auth fallbacks, record resolution, and nested breadcrumbs.
viewAny is denied, aligning with least-privilege principles.Adopt if:
SingleRecordResolvableResource contract for large codebases.Look elsewhere if:
belongsTo relationships (may require additional logic).For Executives: "This package standardizes the development of user-specific admin panels (e.g., 'My Profile,' 'My Wallet') in Filament, cutting development time by 30–50% while improving security and UX. It eliminates the need for custom index-page logic, reduces technical debt, and supports scalable architectures like multi-tenant SaaS platforms. With MIT licensing and Filament 4/5 compatibility, it’s a low-risk, high-reward investment for our admin panel roadmap."
For Engineers: *"This package solves the single-record resource pattern in Filament—think 'My X' pages without an index. Key benefits:
HasSingleRecordResource to your Resource and HasSingleRecord to pages for automatic single-record resolution.view() permissions if viewAny() is denied.SingleRecordResolvableResource contract for IDE support.view/edit by default, keeping UIs clean.
Perfect for user profiles, settings, or tenant-specific dashboards—just define your model relationships, and it handles the rest."How can I help you explore Laravel packages today?