goravel-crud-request

Generate create and update request validators for Goravel entities.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate boilerplate and enforce best practices for request validation in Goravel, ensuring consistent, secure input handling for create and update operations.

Core Features & Use Cases

  • Generates app/http/requests/<entity>_create_request.go and app/http/requests/<entity>_update_request.go for new entities.
  • Enforces snake_case for form and json tags to work with Goravel's binding.
  • Guides ToCreateData() camelCase keys and ToUpdateData() snake_case keys alignment to DB and JSON mappings.
  • Supports carbon.DateTime conversion rules and common field types in requests.

Quick Start

Run the generator to create the create and update request files for a given Goravel entity and review the generated code for validation rules and field mappings.

Frequently Asked Questions about goravel-crud-request

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

FAQPage Schema
How do I generate request validators for a Goravel CRUD entity?

Generate Goravel CRUD request validators by running the generator to produce create and update request files, applying validation rules, field mapping, and carbon.DateTime handling automatically.

Why does Goravel request binding require snake_case form and json tags?

Goravel request binding requires snake_case form and json tags to correctly map input data to struct fields during the binding process. The generator enforces snake_case for tags to ensure consistent data binding.

What is the difference between ToCreateData and ToUpdateData keys in Goravel requests?

ToCreateData uses camelCase keys for creation data, while ToUpdateData uses snake_case keys for updates. This alignment ensures correct mapping to DB and JSON structures in Goravel CRUD operations.

How do I handle carbon.DateTime fields in Goravel validation rules?

Handle carbon.DateTime fields in Goravel validation by using the generator's built-in conversion rules, which support common field types and ensure proper date handling across create and update request validators.

Can I use this request generator for an existing Goravel project?

Yes, you can use this request generator for an existing Goravel project. It generates files in the app/http/requests directory, applying best practices for input validation without requiring external dependencies.

What's the best way to enforce consistent input validation in Goravel?

The best way to enforce consistent input validation in Goravel is generating boilerplate request files with predefined validation rules, snake_case tag enforcement, and structured field mapping for secure create and update operations.