upgrade-laravel

upgrade-laravel is a skill for Claude Code, Codex from Phaedra-Solutions/cursor-rules. It costs 132 tokens per session (1,314 once invoked), scanned A, original, MIT.

A guided process for upgrading a Laravel application, a PHP web framework, one major release at a time while checking PHP and related packages.

In plain words
What is it for?
Use it to plan each Laravel upgrade step, update supported packages, apply optional automated code changes, and run tests and static checks.
Why use it?
It exposes version requirements and compatibility problems in Laravel extensions and third-party packages before they reach deployment.

Skill for Claude CodeCodex

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

Good fit Use it to plan each Laravel upgrade step, update supported packages, apply optional automated code changes, and run tests and static checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phaedra-solutions/cursor-rules/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.

Any agent
npx skills add Phaedra-Solutions/cursor-rules --skill upgrade-laravel
Clone the repo
git clone --depth 1 https://github.com/Phaedra-Solutions/cursor-rules

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-laravel/github.svg)](https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-laravel)
Your own site
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-laravel"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/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/skills/phaedra-solutions/cursor-rules/upgrade-laravel"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-laravel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,314 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.00132 $0.01314
Opus 5.5 $0.00053 $0.00526
Sonnet 5.5 $0.00026 $0.00263
Haiku 4.5 $0.00013 $0.00131

Measured 3d ago against content hash 56135440805c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3d 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/upgrade-laravel/SKILL.md · 69 lines

How it starts

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

Upgrade Laravel

When to use

  • The user asks to upgrade Laravel, or the app is on Laravel 11 or older (see legacy/php-legacy).
  • A fix exists only in Laravel 12 or 13 (for example the 2026 TokenGuard bypass and debug-page XSS).

For a minor or patch update within a major, run composer update laravel/framework --with-all-dependencies and Verify.

Before you start

  • Read laravel/framework, PHP, and every Laravel-related package with its supported Laravel range: Livewire, Filament, Sanctum, Fortify, Horizon, Telescope, Cashier, Scout, Inertia, Spatie packages, and anything with a service provider.
  • PHP minimum per target: Laravel 12 needs PHP 8.2+, Laravel 13 needs 8.3+. Run upgrade-php first if needed.
  • Working tree clean; new branch (chore/laravel-13).
  • Ask the user:
    • the target (default: 13, security support to 17 Mar 2028);
    • whether to stop for review after each major;
    • whether they want to use Laravel Shift (a paid service that opens an upgrade PR per major) instead of or alongside the manual steps;
    • whether network installs are approved (core/supply-chain cooldown applies).
  • Plan the hops: one major at a time. Upgrade blockers (an abandoned package without support for the next major) must be resolved before that hop.

Steps

  1. Baseline: composer install, php artisan test, PHPStan/Larastan, php artisan about, and a manual check of key flows. Record failures.
  2. Patch the current major to its latest release and fix deprecation warnings in logs and tests.
  3. Read the official upgrade guide for the next major (laravel.com/docs/<next>.x/upgrade) and list the items marked high and medium impact that apply to this app.
  4. Update dependencies: in composer.json, set laravel/framework to the next major (^12.0), update first-party packages and dev tools (phpunit/phpunit, nunomaduro/collision, larastan/larastan) to the versions the guide lists, and third-party packages to versions that support it. Run composer update --with-all-dependencies and resolve conflicts by upgrading packages, not by --ignore-platform-reqs.
  5. Optional Rector: composer require --dev driftingly/rector-laravel and run the matching set (LaravelSetList::LARAVEL_120, LARAVEL_130) with --dry-run first; review every change.
  6. Apply the guide's code and config changes that Rector didn't, for example:
    • 10 → 11: PHP 8.2+, optional slim application structure (keep the existing structure unless asked), per-second rate limiting;
    • 11 → 12: PHP 8.2+, new starter kits (no need to change an existing app), dependency bumps;
    • 12 → 13: PHP 8.3+, the CSRF middleware renamed to PreventRequestForgery with Sec-Fetch-Site checks, and the other high-impact items in the guide. Check published config files against the framework's defaults for new options.
  7. Packages with their own upgrade guides: follow them in the same hop (Livewire 2 → 3 → 4, Filament majors, Inertia, Horizon).
  8. Verify (next section), show the diff and results, and wait for approval before the next hop. Commit only when asked (git-commit skill). At the target, switch to backend/laravel.

Read the full file on GitHub · 69 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. 3d ago First seen · 69 lines · 132 tokens per session scan A 56135440805c

Subscribe to this mod's changes

upgrade-laravel is a skill published in the GitHub repository Phaedra-Solutions/cursor-rules (4 stars, last pushed 2d ago), licensed MIT. It adds 132 tokens to every session and 1,314 once invoked, about $0.0005 per session on Opus 5.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-11-01.