laravel-specialist

Build Laravel 10+ apps with Eloquent, Sanctum, Horizon, Livewire, and tests.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/kamelmh/opencode-config --skill laravel-specialist-kamelmh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-specialist
Source: https://github.com/kamelmh/opencode-config/tree/main/skills/laravel-specialist
Command: npx skills add https://github.com/kamelmh/opencode-config --skill laravel-specialist-kamelmh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the friction of building modern Laravel applications by guiding model design, authentication, queues, APIs, Livewire interfaces, and automated tests in one consistent workflow.

Core Features & Use Cases

  • Eloquent modeling: Create models, relationships, scopes, casts, and query optimizations while avoiding N+1 issues.
  • Authentication and APIs: Implement Sanctum-based auth flows, RESTful controllers, and API resources for clean JSON responses.
  • Queues and background work: Set up jobs, workers, Horizon monitoring, retries, and failure handling for long-running tasks.
  • Reactive interfaces and testing: Build Livewire components and verify behavior with Pest or PHPUnit feature and unit tests.
  • Use Case: A team can use this Skill to launch a new posts module with database migrations, protected endpoints, queued publishing, and full test coverage without missing Laravel best practices.

Quick Start

Ask for a Laravel 10+ implementation plan or code changes for your feature, and this Skill will generate the models, routes, resources, jobs, components, and tests you need.

Frequently Asked Questions about laravel-specialist

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

FAQPage Schema
How do I build production-ready Laravel REST APIs with Sanctum authentication?

Building production-ready Laravel REST APIs with Sanctum authentication involves implementing Sanctum auth flows, RESTful controllers, and API resources to generate clean JSON responses. This ensures secure endpoint protection while structuring data consistently across your application.

What is the best way to prevent N+1 query issues in Laravel Eloquent models?

The best way to prevent N+1 query issues in Laravel Eloquent models is by applying eager-loaded queries when defining relationships and scopes. Optimizing Eloquent model design through eager loading ensures efficient database interactions and meets production performance requirements for complex data retrieval.

How do I set up Laravel Horizon queues for background job processing?

Setting up Laravel Horizon queues for background job processing involves configuring jobs, workers, and Horizon monitoring to handle long-running tasks. This setup includes implementing retries and failure handling to ensure queue safety and reliable execution of asynchronous operations.

Does this Laravel workflow support Livewire interfaces and Pest testing?

Yes, this Laravel workflow supports building reactive Livewire interfaces and verifying behavior with Pest or PHPUnit tests. You can generate Livewire components alongside comprehensive feature and unit test coverage to ensure robust application functionality and code reliability.

Can I generate typed PHP 8.2 Laravel code that follows PSR-12 structure?

Yes, you can generate typed PHP 8.2 Laravel code that follows PSR-12 structure. This ensures your models, routes, resources, and components meet strict coding standards, comprehensive validation requirements, and modern PHP best practices for production applications.