moonshine-resources-v4

Structure MoonShine v4 ModelResource CRUD logic with page-centric pages and Eloquent query hooks.

4|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/agarzon/moonshine-v4-skills --skill moonshine-resources-v4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moonshine-resources-v4
Source: https://github.com/agarzon/moonshine-v4-skills/tree/main/moonshine-resources-v4
Command: npx skills add https://github.com/agarzon/moonshine-v4-skills --skill moonshine-resources-v4

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill gives AI coding agents a reliable, current reference for building and maintaining MoonShine v4 admin resources without relying on outdated API assumptions or scattered documentation.

Core Features & Use Cases

  • Page-Centric CRUD: Model resources declare dedicated index, form, and detail pages, with fields, validation, buttons, and component modifiers owned by the page classes.
  • Search, Filters, and Query Tags: Configure resource search, index-page filters, saved query state, and quick-filter tags for fast admin table navigation.
  • Operations and Extensibility: Handle metrics, events, import/export, authorization, response modifiers, and custom save or delete handlers for production admin workflows.
  • Use Case: Ask the AI to generate or refactor a MoonShine v4 resource for a model so the resulting admin section includes CRUD pages, filtering, search, and action buttons that match the framework's v4 architecture.

Quick Start

Ask the AI to create or refactor a MoonShine v4 ModelResource for your model with index, form, and detail pages, plus the filters, buttons, and validation you need.

Frequently Asked Questions about moonshine-resources-v4

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a MoonShine v4 admin panel with CRUD pages for a Laravel model?

Build MoonShine v4 CRUD pages by defining a ModelResource with dedicated index, form, and detail page classes that own fields, validation, buttons, and component modifiers for your Laravel Eloquent model.

How do I add filters and search to a MoonShine admin resource index page?

Add filters and search to a MoonShine admin resource by configuring resource-level search fields and applying index-page filters alongside quick-filter query tags for fast admin table navigation.

Can I handle import and export operations in a MoonShine v4 admin dashboard?

Yes, you can handle import and export operations in a MoonShine v4 dashboard by implementing custom handlers within your ModelResource to manage data processing alongside metrics and authorization.

Does MoonShine v4 require page-centric logic for form saving and deletion?

MoonShine v4 requires page-centric logic where ModelResource CRUD uses handler-based save and delete overrides, Eloquent query hooks, and lifecycle hooks integrated within dedicated page classes.

What is the best way to structure custom actions and buttons in MoonShine resources?

The best way to structure custom actions and buttons in MoonShine resources is to declare them within dedicated page classes, ensuring response modifiers and authorization checks align with the v4 architecture.

Why are my MoonShine v4 ModelResource fields and validation rules not applying correctly?

MoonShine v4 fields and validation rules may not apply correctly if they are declared in the ModelResource instead of being owned and configured within the dedicated index, form, and detail page classes.