laravel

Designs Laravel applications with Eloquent, validation, and API resources.

44|9|Updated May 7, 2026
One-click install
npx skills add https://github.com/Omar-Obando/qwen-orchestrator --skill laravel-omar-obando
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel
Source: https://github.com/Omar-Obando/qwen-orchestrator/tree/main/skills/laravel
Command: npx skills add https://github.com/Omar-Obando/qwen-orchestrator --skill laravel-omar-obando

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the challenge of implementing Laravel backend features consistently without fragile patterns, N+1 queries, or duplicated validation and authorization logic.

Core Features & Use Cases

  • Eloquent ORM patterns: Model relationships, eager loading, scopes, accessors/mutators, and casts to keep data access correct and efficient.
  • Validation at the edge: Form Requests for authorization and rule-based input validation to protect controllers and unify error handling.
  • Enterprise architecture building blocks: Service Container dependency injection, API Resources for stable JSON outputs, queue jobs for async work, middleware layers, and policy-based authorization.
  • Migrations and testing: Reproducible schema changes and reliable feature testing to prevent regressions while iterating.

Quick Start

Ask the skill to generate a full Laravel setup for an API model named Product, including Eloquent relationships, a REST controller, Form Request validation, a JSON Resource, and an example queued job for imports.

Frequently Asked Questions about laravel

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

FAQPage Schema
How do I avoid N+1 query problems in Laravel Eloquent ORM?

To avoid N+1 query problems in Laravel Eloquent ORM, apply eager loading patterns when retrieving model relationships. This ensures related data is fetched efficiently in a single query, keeping data access correct and performant for production-ready APIs.

What is the best way to handle API input validation and authorization in Laravel?

The best way to handle API input validation in Laravel is using Form Requests at the edge. This pattern performs rule-based validation and authorization before reaching the controller, unifying error handling and protecting your application from invalid data.

How do I structure stable JSON API responses in Laravel?

Structure stable JSON API responses in Laravel by using API Resources. They provide a transformation layer between your database models and JSON output, ensuring consistent data formatting across your application while maintaining maintainability and preventing data leakage.

How do I implement asynchronous background processing in Laravel?

Implement asynchronous background processing in Laravel by using queueable jobs. Applying the ShouldQueue interface to jobs allows tasks like data imports to be executed asynchronously, improving API response times and overall application reliability.

How do I use dependency injection to organize Laravel service logic?

Use the Laravel Service Container for dependency injection to organize application logic. This approach allows you to resolve and inject class dependencies automatically, reducing duplicated code and making your enterprise architecture significantly easier to maintain.

How do I enforce user authorization policies in a Laravel REST controller?

Enforce user authorization in a Laravel REST controller by implementing policy classes. Policies encapsulate authorization logic, allowing you to verify user permissions before executing actions, which satisfies maintainability and production readiness requirements.