Laravel Specialist

Build Laravel 12 and 13 apps: Eloquent models and relationships, Sanctum auth, Horizon queues, API resources, and Livewire interfaces.

Development / Backenddevelopmentbackend
by AgentVoltv1.0.0Published 1y ago1 install
Free to sign up · every skill included with AgentVolt Pro

Before & after

Same prompt, same agent — the only difference is the skill.

PromptBuild a Laravel API with user authentication and background job processing
Beforegeneric AI agent
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.
Afterwith Laravel Specialist
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

SKILL.md
---
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)
Sign up to view, copy, and install the full skill

More development skills

View all Development skills →