Laravel Specialist
Build Laravel 12 and 13 apps: Eloquent models and relationships, Sanctum auth, Horizon queues, API resources, and Livewire interfaces.
Before & after
Same prompt, same agent — the only difference is the skill.
Laravel is a good choice for building APIs. You'll want to set up models, routes, and controllers. For authentication, Sanctum is the way to go for SPAs. Background jobs would use queues and probably Laravel Horizon for monitoring. There are a lot of moving parts to think about, but the framework handles a lot of the boilerplate.
LARAVEL API SCAFFOLD + SETUP GUIDE
STEP 1: MODELS + MIGRATIONS
→ php artisan make:model User -m
→ User model with: name, email, password, api_token
→ Migration: users table with indexed email
STEP 2: SANCTUM AUTH
→ composer require laravel/sanctum
→ php artisan vendor:publish --provider=SanctumServiceProvider
→ In User model: use HasApiTokens
→ Route protection: middleware('auth:sanctum')
→ Login endpoint returns token: auth()->user()->createToken('API Token')
STEP 3: API ROUTES (routes/api.php)
POST /auth/login → AuthController@login
GET /user → protected endpoint
POST /logout → AuthController@logout
STEP 4: JOB SETUP
→ php artisan make:job ProcessEmailQueue
→ Database queue driver (set in .env: QUEUE_CONNECTION=database)
→ Migration: php artisan queue:table
→ In controller: ProcessEmailQueue::dispatch($data)
STEP 5: HORIZON (Job Monitoring)
→ composer require laravel/horizon
→ php artisan horizon:install
→ Start workers: php artisan horizon
→ Dashboard at /horizon (protected with gate)
TESTING WITH PEST
→ test('user can login', function() { ... })
→ Fake queue: Queue::fake(); assertDispatched()
→ Test timeout scenarios and retry logic
DEPLOYMENT: Ensure queue:work runs as separate process on production.About this skill
name: laravel-specialist description: Use when creating Laravel models, setting up queue workers, implementing Sanctum auth flows, building Livewire components, optimizing Eloquent queries, or writing Pest/PHPUnit tests.
Laravel Specialist
Build and configure Laravel 12 and 13 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 queue workers, implementing Sanctum auth flows, building Livewire components, optimizing Eloquent queries, or writing Pest/PHPUnit tests for Laravel features.
What you get
- Public GitHub repo
- the skills/laravel-specialist folder with SKILL.md and references.
Customize your output
- Fork the repo and extend the skill's reference files for your own stack conventions.
Example output
Activates on a matching request (e.g. building or reviewing Laravel Specialist code) and can chain with other skills in the pack.
Best for
Full-stack developers and engineering teams using Claude Code.
SKILL.md preview
---
name: laravel-specialist
description: Use when creating Laravel models, setting up queue workers, implementing Sanctum auth flows, building Livewire components, optimizing Eloquent queries, or writing Pest/PHPUnit tests.
version: 1.0.0
category: Development / Backend
author: AgentVolt
license: proprietary
tags:
- development
- backend
---
# Laravel Specialist
Builds and configures Laravel 12 and 13 applications, covering Eloquent models and relationships, Sanctum authentication, Horizon-managed queues, RESTful APIs via API resources, and reactive Livewire interfaces.
## When to use
- Designing new Eloquent models and their relationships
… (sign up to view the full skill)More development skills
View all Development skills →Golang Pro
Implements concurrent Go patterns with goroutines and channels, designs microservices over gRPC or REST, profiles performance with pprof.
API Designer
Use when designing REST or GraphQL APIs, creating OpenAPI specifications, or planning API architecture.
Django Expert
Use when building Django web applications or REST APIs with Django REST Framework.
Microservices Architect
Designs distributed system architectures, decomposes monoliths into bounded-context services, recommends communication patterns, and produces service boundary diagrams and resilience strategies.