laravel-laravel-prompting-patterns

Generate idiomatic Laravel code for models, controllers, requests, resources, and jobs.

Updated Jun 8, 2025
One-click install
npx skills add https://github.com/noartem/kawa --skill laravel-laravel-prompting-patterns-noartem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-laravel-prompting-patterns
Source: https://github.com/noartem/kawa/tree/main/ui/.ai/skills/laravel-prompting-patterns
Command: npx skills add https://github.com/noartem/kawa --skill laravel-laravel-prompting-patterns-noartem

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers generate idiomatic Laravel code by using framework-specific vocabulary and patterns, ensuring the output leverages Eloquent, Form Requests, API resources, and queues.

Core Features & Use Cases

  • Eloquent-centric code generation for models, relationships, scopes, and queries
  • Form Request validation, rule sets, and custom messages
  • API Resource routing, responses, and pagination patterns
  • Background processing with Jobs and Queues, including delay and tagging
  • Use Case: rapidly scaffold a CRUD API with proper validation and response shaping

Quick Start

Write a prompt asking for idiomatic Laravel code that demonstrates a User model with validation, an API Resource, and a queued job.

Frequently Asked Questions about laravel-laravel-prompting-patterns

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

FAQPage Schema
How do I generate idiomatic Laravel code for Eloquent models and relationships?

Idiomatic Laravel code generation applies framework-specific patterns to create Eloquent models, defining relationships, scopes, and queries that adhere to standard conventions for typical app domains.

What is the best way to scaffold a CRUD API with Laravel validation and API resources?

Scaffolding a CRUD API in Laravel is best handled by combining Form Requests for validation rule sets and API Resources for response shaping, ensuring proper routing and pagination patterns.

How do I set up Laravel queued jobs for background processing?

Laravel queued jobs handle background processing by applying framework patterns for delays and tagging, ensuring typical app domains manage task execution efficiently through standard job queues.

Does this Laravel prompting approach support custom validation rules in Form Requests?

Yes, the Laravel prompting approach supports Form Requests by generating rule sets and custom messages, enforcing framework vocabulary for validation across typical app domains like CRUD APIs.

When should I use Laravel API Resources instead of returning Eloquent models directly?

Use Laravel API Resources when you need consistent response shaping and transformation for your CRUD API, rather than returning Eloquent models directly, to adhere to framework conventions.