laravel:nova:resource-patterns

Installation
SKILL.md

Nova Resource Patterns

Build consistent Nova resources that mirror domain models and evolve safely.

Fields

  • Keep fields ordered: identifiers → primary attributes → relations → meta
  • Use ->sortable()/->filterable() where it delivers value
  • Hide sensitive fields (e.g., tokens) from index/detail unless necessary
  • Prefer BelongsTo/HasMany/Morph* relations with searchable constraints

Authorization

  • Use Nova policies mirroring model policies for viewAny, view, create, update, delete
  • Avoid leaking existence via unauthorized search; scope queries

Actions

  • Keep actions idempotent or provide safeguards
Related skills
Installs
53
GitHub Stars
131
First Seen
Jan 21, 2026