laravel-specialist

Automate Laravel 10+ development tasks with Eloquent ORM, API resources, and queues.

10.9k|1.0k|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/Jeffallan/claude-skills --skill laravel-specialist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-specialist
Source: https://github.com/Jeffallan/claude-skills/tree/main/skills/laravel-specialist
Command: npx skills add https://github.com/Jeffallan/claude-skills --skill laravel-specialist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill covers Laravel patterns, Eloquent ORM, API resources, and queue systems.

Core Features & Use Cases

  • Eloquent ORM: Models, relationships, scopes, and eager loading.
  • Routing & API Resources: RESTful endpoints with resources.
  • Queues: Jobs, workers, and Horizon.
  • Livewire: Reactive components for UI.
  • Testing: Feature tests and unit tests patterns.

Quick Start

Create a Post model with a relationship to User and a simple API Resource for post output.

Frequently Asked Questions about laravel-specialist

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

FAQPage Schema
How do I build RESTful APIs with Laravel Eloquent models and API resources?

Create Eloquent models with relationships, define routes, and use API resources to transform model data into JSON responses. API resources provide consistent output formatting and handle eager loading to prevent N+1 queries, ensuring efficient endpoint performance.

What's the best way to prevent N+1 query problems in Laravel applications?

Use Eloquent's eager loading with `with()` to load related models in a single query, and leverage API resources to structure output. This reduces database calls significantly when returning collections of models with relationships.

How do I implement job queues and background processing in Laravel?

Define queueable jobs, configure queue drivers, and use Horizon to monitor and manage queue workers. Queues handle async tasks like sending emails or processing data without blocking HTTP responses.

Can I use Livewire for reactive UI components in Laravel applications?

Livewire provides reactive components that update server-side state without full page reloads. It integrates seamlessly with Laravel Blade templates and handles form validation, events, and data binding automatically.

What testing patterns should I follow for Laravel Eloquent models and APIs?

Use feature tests to verify API endpoints and responses, and unit tests for business logic. Laravel's testing utilities provide database transactions to isolate tests and factories to generate test data efficiently.

Does Laravel support Sanctum authentication for API access?

Sanctum provides token-based authentication for APIs and SPA applications. It issues stateless tokens tied to users and guards routes without requiring sessions, making it ideal for RESTful API protection.