goravel-crud-service

Generate Goravel CRUD services with builder-pattern configuration.

16|11|Updated Jun 12, 2025
One-click install
npx skills add https://github.com/liwoo/goravel-inertia-tw-starter --skill goravel-crud-service
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: goravel-crud-service
Source: https://github.com/liwoo/goravel-inertia-tw-starter/tree/main/.claude/skills/goravel-crud-service
Command: npx skills add https://github.com/liwoo/goravel-inertia-tw-starter --skill goravel-crud-service

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate the service layer for a Goravel entity using a builder-pattern configuration, reducing boilerplate and ensuring consistent CRUD logic across entities.

Core Features & Use Cases

  • Automates creation of a Goravel service for a given model, wiring builder configuration for search fields, sort fields, and validations.
  • Supports custom lifecycle hooks and relationship loading via the service builder.
  • Use Case: after generating a new model, run the generator to produce a ready-to-use service with standard patterns, then tailor rules per entity.

Quick Start

Generate the Goravel CRUD service for your model and entity, then configure the builder to define search, sort, and validation rules.

Frequently Asked Questions about goravel-crud-service

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

FAQPage Schema
How do I generate a CRUD service in Goravel using the builder pattern?

To generate a CRUD service in Goravel, use a builder-pattern generator that wires search fields, sort options, validations, and relations for a given model, producing ready-to-use service code with standard CRUD logic and reduced boilerplate.

What is the best way to reduce Goravel service boilerplate for new entities?

The best way to reduce Goravel service boilerplate is to use a scaffolding generator that applies the builder pattern, automatically creating service methods like WithSearchFields and WithValidationRules for consistent CRUD logic across all entities.

Can I configure search fields and sort options when scaffolding a Goravel CRUD service?

Yes, scaffolding a Goravel CRUD service supports configuring search fields and sort options through builder methods like WithSearchFields and WithSortFields, allowing you to tailor query behaviors per entity after generating the base service.

Does the Goravel CRUD service builder support custom validation rules and lifecycle hooks?

The Goravel CRUD service builder supports custom validation rules via WithValidationRules and includes optional configurations for lifecycle hooks and relationship loading, enabling tailored entity processing within the generated service layer.

Do I need an existing Goravel model before generating a CRUD service?

Yes, you need an existing model in your Goravel project before scaffolding the CRUD service, as the generator uses the model definition to wire builder configurations for search fields, sort fields, validations, and relations.