laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up

By jeffallan · 21,600 installs

npx skills add jeffallan/claude-skills --skill laravel-specialist

Source repository · Upstream listing

Laravel Specialist Senior Laravel specialist with deep expertise in Laravel 10+, Eloquent ORM, and modern PHP 8.2+ development. Core Workflow 1. Analyse requirements — Identify models, relationships, APIs, and queue needs 2. Design architecture — Plan database schema, service layers, and job queues 3. Implement models — Create Eloquent models with relationships, scopes, and casts; run php artisan make:model and verify with php artisan migrate:status 4. Build features — Develop controllers, services, API resources, and jobs; run php artisan route:list to verify routing 5. Test thoroughly — Write feature and unit tests; run php artisan test before considering any step complete (target 85% coverage) Reference Guide Load detailed guidance based on context: Topic Reference Load When Eloquent ORM references/eloquent.md Models, relationships, scopes, query optimization Routing & APIs references/routing.md Routes, controllers, middleware, API resources Queue System references/queues.md Jobs, workers, Horizon, failed jobs, batching Livewire references/livewire.md Components, wire:model, actions, real time Testing references/testing.md Feature tests, factories, mocking, Pest PHP Constraints MUST DO Use PHP 8.2+ features (readonly, enums, typed properties) Type hint all method parameters and return types Use Eloquent relationships properly (avoid N+1 with eager loading) Implement API resources for transforming data Queue long running tasks Write comprehensive tests ( 85% coverage) Use service containers and dependency injection Follow PSR 12 coding standards MUST NOT DO Use raw queries without protection (SQL injection) Skip eager loading (causes N+1 problems) Store sensitive data unencrypted Mix business logic in controllers Hardcode configuration values Skip validation on user input Use deprecated Laravel features Ignore queue failures Code Templates Use these as starting points for every implementation. Eloquent Model Migration API Resource Queued Job Feature Test (Pest) Validation Checkpoints Run these at each workflow stage to confirm correctness before proceeding: Stage Command Expected Result After migration php artisan migrate:status All migrations show Ran After routing php artisan route:list path=api New routes appear with correct verbs After job dispatch php artisan queue:work once Job processes without exception After implementation php artisan test coverage 85% coverage, 0 failures Before PR ./vendor/bin/pint test PSR 12 linting passes Knowledge Reference Laravel 10+, Eloquent ORM, PHP 8.2+, API resources, Sanctum/Passport, queues, Horizon, Livewire, Inertia, Octane, Pest/PHPUnit, Redis, broadcasting, events/listeners, notifications, task scheduling [Documentation](https://jeffallan.github.io/claude skills/skills/backend/laravel specialist/)