php-laravel

php-laravel is a skill for Claude Code, Codex from Effulgent-Point/paw. It costs 0 tokens per session (585 once invoked), scanned A, original, MIT.

A development guide for PHP and Laravel, a PHP framework for building web applications and APIs.

In plain words
What is it for?
Use it when working with Eloquent database models, request validation, authentication middleware, queues, migrations, soft deletes, or Laravel tests.
Why use it?
It helps prevent common database, security, validation, middleware, queue, migration, and testing mistakes in Laravel projects.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when working with Eloquent database models, request validation, authentication middleware, queues, migrations, soft deletes, or Laravel tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/effulgent-point/paw/php-laravel
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.

Any agent
npx skills add Effulgent-Point/paw --skill php-laravel
Clone the repo
git clone --depth 1 https://github.com/Effulgent-Point/paw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for php-laravel

README.md
[![agentmods](https://agentmods.dev/badge/skills/effulgent-point/paw/php-laravel.svg)](https://agentmods.dev/skills/effulgent-point/paw/php-laravel)
Your own site
<a href="https://agentmods.dev/skills/effulgent-point/paw/php-laravel"><img src="https://agentmods.dev/badge/skills/effulgent-point/paw/php-laravel.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 585 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00585
Opus 5 $0.00000 $0.00293
Sonnet 5 $0.00000 $0.00117
Haiku 4.5 $0.00000 $0.00059

Measured 7d ago against content hash 50a75adef635, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

php-laravel 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 7d 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.

skills/php-laravel/SKILL.md · 50 lines

How it starts

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

PHP / Laravel Skill

When to use: PHP or Laravel work — Eloquent, middleware, validation, queues, migrations, testing.

Eloquent gotchas

  • N+1 queries — use with() for eager loading. $users->posts in a loop = N+1. User::with('posts')->get() = 2 queries.
  • Mass assignment — always use $fillable (allowlist), not $guarded = [] (denylist of nothing)
  • Soft deletesModel::all() excludes soft-deleted by default. If you need them: withTrashed(). Know which you want.
  • Accessor performance — never put a query inside an accessor/getter. It runs on every access.
  • Check-then-write — use firstOrCreate() / updateOrCreate() instead of if (!exists) create. Avoids race conditions.

Middleware patterns

  • Apply auth middleware at the route group level, not per-route (easy to forget one)
  • Rate limiting on auth endpoints: throttle:5,1 minimum
  • CORS configured at middleware level, not in individual controllers
  • Order matters: auth before authorization before validation

Form request validation

  • Use Form Request classes for complex validation, not inline $request->validate()
  • authorize() method for permission checks — returns true/false
  • Custom error messages for user-facing forms
  • sometimes rule for optional fields that should validate only when present

Queue / job patterns

  • Idempotency — jobs must be safe to retry. Use unique IDs or idempotency keys.
  • Set $tries and $timeout on every job. Defaults are rarely correct.
  • Implement failed() method for cleanup on permanent failure
  • Unique locksShouldBeUnique interface when duplicate dispatch is harmful
  • Backoff — use $backoff property for exponential retry delays

Migration safety

  • New columns: always nullable() or ->default() — never break existing rows
  • Never dropColumn() in production without a data backup plan
  • Always write down() migration and test it
  • Add indexes for columns used in WHERE clauses
  • Separate migration deploy from code deploy when possible (expand/contract pattern)

Read the full file on GitHub · 50 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. 7d ago First seen · 50 lines · 0 tokens per session scan A 50a75adef635

Subscribe to this mod's changes

php-laravel is a skill published in the GitHub repository Effulgent-Point/paw (2 stars, last pushed 27d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 585 tokens. 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.

Related

Other skills, from other repositories

laravel

Use when building or extending a Laravel 11/12 app — Eloquent models, migrations and relationships, routing with controllers and Form Requests, queues and background jobs, framework-native security (validation, mass-assignment, policies, signed URLs, rate limiting), and Pest/PHPUnit feature tests. NOT pure PHP…

ericrisco/rsc-harness · 76 tokens

developing-with-laravel

Laravel framework patterns for PHP applications including Eloquent ORM, migrations, routing, queues, and Blade templates. Use when building Laravel applications or working with Laravel projects.

FortiumPartners/ensemble · 39 tokens

pn-php-scaffolding

Scaffolds new PHP API projects (Laravel, Slim) or routes. Use when adding a new controller/service; covers PSR standards, Composer hygiene, Laravel conventions, and idiomatic PHP 8.x patterns.

perniemann/pnCore · 50 tokens

golang-samber-do

Dependency injection in Golang using samber/do — service containers, lifecycle management, scopes, health checks, graceful shutdown, and module organization. Apply when using or adopting samber/do, when the codebase imports github.com/samber/do or github.com/samber/do/v2, or when refactoring manual constructor…

alexastrum/skl · 74 tokens

laravel-best-practices

Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization…

promovaweb/specsfy · 114 tokens

wayfinder-development

Use this skill for Laravel Wayfinder which auto-generates typed functions for Laravel controllers and routes. ALWAYS use this skill when frontend code needs to call backend routes or controller actions. Trigger when: connecting any React/Vue/Svelte/Inertia frontend to Laravel controllers, routes, building end-to-end…

promovaweb/specsfy · 151 tokens