Php Laravel

Use when the user asks about Laravel, an Eloquent model with relationships, Form Requests, Laravel queues and jobs, API Resources, eager loading or Pest/PHPUnit tests. Produces Laravel 11+ code with thin controllers and services. Not for Symfony (use symfony-backend) or plain PHP (use php-pure).

45 stars 6 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill php-laravel
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/backend/php/laravel ~/.claude/skills/php-laravel

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Laravel

## Purpose
Build Laravel applications with clean MVC structure, service layer separation, Eloquent ORM best practices, form request validation, queue jobs, and comprehensive testing.

## Agent Protocol

### Trigger
User request includes: `Laravel structure`, `Laravel app`, `Eloquent`, `Laravel service`, `Laravel validation`, `Laravel queue`, `Laravel testing`, `Laravel job`, `Laravel seeder`.

### Input Context
- Laravel version (10.x, 11.x)
- PHP version (8.1+)
- Database (MySQL, PostgreSQL, SQLite)
- Features (Auth, Queues, Broadcasting, Notifications, Cashier)

### Output Artifact
Controller structure, service class, Eloquent model, form request, job class, seeder, test.

### Response Format
Produce artifact directly. No preamble, no postamble, no explanations.

### Completion Criteria
- Controller delegates to service layer
- Eloquent model with scopes, relations, casts
- Form request class with validation rules
- Service class with business logic
- Queue job with typed properties
- Feature/unit tests for critical paths

### Max Response Length
4096 tokens

## Architecture Decision Trees

### Service Layer vs Repository vs Active Record

| Criterion | Service Layer | Repository | Active Record (Vanilla) |
|-----------|--------------|------------|------------------------|
| Business logic location | Service class | Repository class | Model methods |
| Query abstraction | Service delegates to model | Repository encapsulates | Direct in controllers |
Read the full skill on GitHub

Details

Skill name
php-laravel
Path
skills/backend/php/laravel/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Php Laravel skill do?

Use when the user asks about Laravel, an Eloquent model with relationships, Form Requests, Laravel queues and jobs, API Resources, eager loading or Pest/PHPUnit tests. Produces Laravel 11+ code with thin controllers and services. Not for Symfony (use symfony-backend) or plain PHP (use php-pure).

How do I install the Php Laravel skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill php-laravel. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Php Laravel popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Php Pure

45

j4flmao/agent-skills

Use when the user asks about PHP without a framework, PSR-7, PSR-15 middleware, PSR-11 containers, PDO prepared statements, Composer autoloading or declare(strict_types=1). Produces framework-free PHP 8.x code. Not for Laravel (use php-laravel) or Symfony (use symfony-backend).

Software Development

Oak Backend

45

j4flmao/agent-skills

Use when the user asks about Oak, jsr:@oak/oak, Deno Oak router, Oak middleware, ctx.state or Oak body parsing. Produces Oak apps with router modules, ordered middleware, error handling and tests. Not for general Deno runtime setup (use deno).

Software Development

Php Zend

45

j4flmao/agent-skills

Use when the user asks about Laminas, Zend Framework migration, Laminas MVC, Mezzio, laminas-servicemanager factories, laminas-db TableGateway or laminas-inputfilter. Produces Laminas/Mezzio modules and migration steps. Not for Symfony (use symfony-backend) or Laravel (use php-laravel).

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.