Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Single Record Resource Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Accelerates development of user-centric admin panels (e.g., SaaS dashboards, CRM portals) by eliminating custom logic for single-record resources like "My Profile," "My Wallet," or "My Settings." Reduces technical debt and development time.
  • Feature Prioritization: Enables rapid implementation of user-specific resources without exposing unnecessary index pages, improving UI/UX consistency and reducing cognitive load for end-users.
  • Roadmap Alignment: Supports scalable architectures for multi-tenant applications or nested resource hierarchies (e.g., "My Wallet → Companies → Products") with clean URLs and breadcrumbs.
  • Use Cases:
    • User-centric admin panels: Profile, settings, subscriptions, or wallet management.
    • Nested single-record hierarchies: Parent-child relationships without exposing IDs in URLs (e.g., tenant-specific dashboards).
    • Authorization granularity: Fallback to record-level authorization when viewAny is denied, aligning with least-privilege principles.
    • Consistency: Standardizes navigation, breadcrumbs, and URL structures across single-record resources.

When to Consider This Package

Adopt if:

  • Your Filament admin panel requires single-record resources tied to authenticated users (e.g., "My X" patterns).
  • You need to hide index pages for user-specific data to avoid clutter or security risks.
  • You’re building nested single-record hierarchies (e.g., parent-child relationships with clean URLs and breadcrumbs).
  • Your team prioritizes maintainability and developer velocity over custom solutions.
  • You use Filament 4 or 5 and want a battle-tested, MIT-licensed solution.
  • You need static-analysis support via the SingleRecordResolvableResource contract for large codebases.

Look elsewhere if:

  • Your use case involves multi-record lists (use standard Filament resources).
  • You require highly custom resolution logic that can’t be expressed via builders or traits (consider a custom solution).
  • You’re not using Filament 4/5 (compatibility is limited to these versions).
  • You need multi-tenant isolation beyond simple belongsTo relationships (may require additional logic).

How to Pitch It (Stakeholders)

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:

  • Traits-based implementation: Add HasSingleRecordResource to your Resource and HasSingleRecord to pages for automatic single-record resolution.
  • Nested resource support: Clean URLs and breadcrumbs for hierarchies like 'Wallet → Companies → Products.'
  • Authorization flexibility: Falls back to record-level view() permissions if viewAny() is denied.
  • Static analysis: Optional SingleRecordResolvableResource contract for IDE support.
  • Zero index pages: Redirects navigation to 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."
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime