upgrade-laravel

upgrade-laravel is a command for Claude Code from nasrulhazim/claude. It costs 0 tokens per session (3,351 once invoked), scanned A, original, MIT.

A Laravel upgrade assistant focused on moving projects or packages from Laravel 12 to Laravel 13.

In plain words
What is it for?
Use it to inspect Composer and PHP versions, identify application or package structure, and assess upgrade-related changes such as CSRF middleware references.
Why use it?
It first distinguishes a full application from a reusable package and checks the current project state before suggesting upgrade work.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-toolkit plugin — 36 skills, 12 commands, 20 agents shipped together

Good fit Use it to inspect Composer and PHP versions, identify application or package structure, and assess upgrade-related changes such as CSRF middleware references.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nasrulhazim/claude/upgrade-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.

Clone the repo
git clone --depth 1 https://github.com/nasrulhazim/claude

Made for: Claude Code.

Or install claude-toolkit, the plugin that ships this one along with the rest of its 36 skills, 12 commands, 20 agents.

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 upgrade-laravel

README.md
[![agentmods](https://agentmods.dev/badge/commands/nasrulhazim/claude/upgrade-laravel/github.svg)](https://agentmods.dev/commands/nasrulhazim/claude/upgrade-laravel)
Your own site
<a href="https://agentmods.dev/commands/nasrulhazim/claude/upgrade-laravel"><img src="https://agentmods.dev/badge/commands/nasrulhazim/claude/upgrade-laravel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for upgrade-laravel

Your own site · 80×15
<a href="https://agentmods.dev/commands/nasrulhazim/claude/upgrade-laravel"><img src="https://agentmods.dev/badge/commands/nasrulhazim/claude/upgrade-laravel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,351 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.03351
Opus 5 $0.00000 $0.01675
Sonnet 5 $0.00000 $0.00670
Haiku 4.5 $0.00000 $0.00335

Measured 11d ago against content hash 5043fb29d0d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

upgrade-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 11d 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.

commands/upgrade-laravel.md · 494 lines

How it starts

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

Laravel 12 to Laravel 13 Upgrade Assistant

You are a specialized assistant for upgrading Laravel from version 12 to version 13.

Step 1: Identify Upgrade Type

CRITICAL: Before any upgrade, determine if this is an APPLICATION or PACKAGE.

Detection Checklist

Check Application Package
composer.json type field "type": "project" "type": "library"
Has public/index.php Yes No
Has app/Http/ directory Yes No
Has src/ directory No Yes
Uses PackageServiceProvider No Usually
Published on Packagist Rarely Yes

Quick Detection Commands

# Check composer.json type
grep '"type"' composer.json

# Check for application indicators
ls public/index.php 2>/dev/null && echo "APPLICATION" || echo "Might be PACKAGE"

# Check for package indicators
ls src/ 2>/dev/null && echo "Might be PACKAGE" || echo "Might be APPLICATION"

Step 2: Assess Current State

Run these commands to understand what needs changing:

# Check current Laravel version
composer show laravel/framework | grep versions

# Check PHP version
php -v

# Check for CSRF middleware references
grep -r "VerifyCsrfToken\|ValidateCsrfToken" app/ config/ routes/ --include="*.php" 2>/dev/null

# Check for cache serialization (objects in cache)
grep -r "Cache::put\|Cache::forever\|Cache::remember" app/ --include="*.php" 2>/dev/null

# Check for queue event listeners
grep -r "JobAttempted\|QueueBusy\|exceptionOccurred" app/ --include="*.php" 2>/dev/null

# Check for model boot with nested instantiation
grep -r "static function boot" app/ --include="*.php" 2>/dev/null

# Check for custom cache store implementations
grep -r "implements Store" app/ --include="*.php" 2>/dev/null

# Check for custom queue driver implementations
grep -r "implements Queue" app/ --include="*.php" 2>/dev/null

# Check for pagination view references
grep -r "pagination::default\|pagination::simple-default" app/ resources/ --include="*.php" --include="*.blade.php" 2>/dev/null

# Check for Manager extend() usage
grep -r "->extend(" app/ --include="*.php" 2>/dev/null

# Check for Str factory usage in tests
grep -r "createUuidsUsing\|createUlidsUsing\|createRandomStringsUsing" tests/ --include="*.php" 2>/dev/null

# Check for Js::from() usage
grep -r "Js::from(" app/ resources/ --include="*.php" --include="*.blade.php" 2>/dev/null

# Check for Container::call with nullable class params
grep -r "app()->call\|Container::call\|->call(" app/ --include="*.php" 2>/dev/null

# Check for password reset subject assertions
grep -r "Reset Password Notification" tests/ --include="*.php" 2>/dev/null

# Check for domain route registration
grep -r "->domain(" routes/ --include="*.php" 2>/dev/null

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

Subscribe to this mod's changes

upgrade-laravel is a command published in the GitHub repository nasrulhazim/claude (22 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,351 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-30.