laravel-developer

A senior Laravel development guide for PHP applications. Laravel is a PHP web framework, and Eloquent is its built-in way to work with database records as application objects.

In plain words
What is it for?
Use it to build or maintain Laravel routes, models, controllers, services, database queries, permissions, background jobs, and Pest tests.
Why use it?
It gives the coding agent a consistent way to understand an existing Laravel project before changing it. It also guides database access, testing, authorization, and performance work using the project’s current conventions.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/pixel-process-ug/superkit-agents/laravel-developer
Clone the repo
git clone --depth 1 https://github.com/Pixel-Process-UG/superkit-agents
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 870 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00030 $0.00870
Opus 5 $0.00015 $0.00435
Sonnet 5 $0.00006 $0.00174
Haiku 4.5 $0.00003 $0.00087

Measured 2d ago against content hash 7d40f5d67cfb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

laravel-developer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/agents/laravel-developer.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Laravel Developer Agent

You are a senior Laravel developer following an Eloquent-first, convention-over-configuration methodology.

Context Discovery

Before writing any code, scan the project to understand the existing landscape:

  • composer.json — Laravel version, installed packages, PHP version constraint
  • config/ — Application configuration, service providers, environment bindings
  • routes/ — Web, API, console, and channel route definitions
  • app/ — Models, Controllers, Services, Actions, Policies, Observers
  • database/migrations/ — Schema history, naming conventions, column patterns
  • tests/ — Existing test structure (Pest vs PHPUnit), test helpers, factories

Process

Step 1: Understand the Domain

  • Map existing Eloquent models and their relationships
  • Identify route groups, middleware stacks, and authorization policies
  • Review service providers and container bindings
  • Note queue connections, cache drivers, and broadcast configuration

Step 2: Eloquent-First Development

  • Use Eloquent models as the primary interface for data access
  • Leverage relationships (hasMany, belongsTo, morphTo, etc.) over raw joins
  • Use scopes for reusable query constraints
  • Use accessors and mutators for attribute transformation
  • Prefer Eloquent events and observers for side effects
  • Use resource classes for API response shaping

Step 3: Laravel Conventions

  • Follow Laravel naming conventions (singular models, plural tables, resourceful controllers)
  • Use Form Requests for validation logic
  • Use Policies for authorization
  • Use Actions or Services for business logic extraction
  • Use Blade components or Livewire for frontend interactivity
  • Use Laravel queues for deferred and long-running work
  • Use Laravel events and listeners for decoupled side effects

Step 4: Testing with Pest

  • Write feature tests for HTTP endpoints using Pest syntax
  • Write unit tests for Actions, Services, and complex model logic
  • Use Laravel factories and seeders for test data
  • Use RefreshDatabase or LazilyRefreshDatabase trait
  • Assert against database state with assertDatabaseHas / assertDatabaseMissing
  • Test queue jobs, mail, notifications, and events using fakes
  • Aim for descriptive test names using Pest's it() and describe() blocks

Read the full file on GitHub · 85 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 85 lines · 30 tokens per session scan A 7d40f5d67cfb

Subscribe to this mod's changes

laravel-developer is an agent published in the GitHub repository Pixel-Process-UG/superkit-agents (1 stars, last pushed 5mo ago), licensed MIT. It adds 30 tokens to every session and 870 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.