goravel-crud-routes

Register API and web routes for Goravel entities across routes files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the routing setup for Goravel entities by automatically injecting API and web routes into routes/api.go and routes/web.go, eliminating repetitive boilerplate and ensuring consistency.

Core Features & Use Cases

  • Automatically registers CRUD API endpoints (Index, Show, Store, Update, Delete) with proper naming conventions.
  • Adds corresponding admin web routes for Inertia-based pages under admin paths, aligning with entity route conventions.
  • Maintains route order constraints (e.g., search before {id}) and distinguishes optional public vs protected endpoints.
  • Use Case: When creating a new entity like lenders, this skill wires all necessary routes across API and web layers, enabling immediate CRUD operations and admin UI.

Quick Start

Provide the entity name (for example lenders) to generate and register all corresponding API and admin web routes.

Frequently Asked Questions about goravel-crud-routes

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

FAQPage Schema
How do I register CRUD API routes for a Goravel entity?

To register CRUD API routes for a Goravel entity, you provide the entity name to automatically inject endpoints like Index, Show, Store, Update, and Delete into routes/api.go. This eliminates repetitive boilerplate and ensures consistent endpoint wiring.

What is the best way to set up admin web routes for Goravel entities?

Setting up admin web routes for Goravel entities involves automatically adding Inertia-based page routes under admin paths in routes/web.go. This aligns with entity route conventions and separates optional public endpoints from protected operations.

Does Goravel require specific route ordering for search and ID endpoints?

Goravel requires specific route ordering, placing search endpoints before {id} parameters to prevent routing conflicts. Following this constraint ensures proper endpoint matching and adheres to hyphenated plural route naming conventions across API and web layers.

Can I separate public and auth-protected routes in Goravel automatically?

You can separate public and auth-protected routes in Goravel by distinguishing optional public endpoints from protected operations during route generation. This applies across both API and web route files, ensuring proper access control layers.

How do I stop writing repetitive routing boilerplate for new Goravel entities?

To stop writing repetitive routing boilerplate for new Goravel entities, you automate the routing setup by injecting all necessary API and web routes. Supplying the entity name wires all CRUD operations and admin UI paths immediately.