laravel:nova:resource-patterns

Nova Resource Patterns

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "laravel:nova:resource-patterns" with this command: npx skills add jpcaparas/superpowers-laravel/jpcaparas-superpowers-laravel-laravel-nova-resource-patterns

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

  • Provide confirmation messages and clear result feedback

Filters & Lenses

  • Filters: simple, commonly used constraints (status, owner, date range)

  • Lenses: opinionated, task‑centric views (e.g., stale items)

Metrics

  • Value/Trend/Partition metrics for essentials; cache appropriately

  • Use explicit time ranges; label units clearly

Resource Organization

  • Group resources by domain (navigation grouping)

  • Keep display titles meaningful; use title() consistently

Testing

  • Prefer feature tests that exercise policy + query scope + resource logic

  • For actions, test success and failure states with realistic seed data

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

laravel:routes-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:blade-components-and-layouts

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:queues-and-horizon

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:quality-checks

No summary provided by upstream source.

Repository SourceNeeds Review