/fuse-laravel:laravel-upgrade-v13from fuse-laravel
Upgrades Laravel 12 applications to Laravel 13.0, covering composer bump, PHP 8.3 minimum, breaking changes (VerifyCsrfToken rename, cache prefix hyphens), and optional Eloquent/Queue Attributes migration.
Ships in fuse-laravel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Centralized upgrade path from Laravel 12.x (latest 12.71) to Laravel 13 (13.0 released March 17, 2026; current stable 13.40).
Before ANY upgrade, spawn 3 agents in parallel, one Agent call each with a name:
$fillable, $tries, VerifyCsrfToken references)/laravel/docs/13.x/upgrade)After upgrade, run fuse-ai-pilot:sniper for validation.
| Phase | Goal | Effort |
|---|---|---|
| 1. Pre-upgrade audit | Detect L12 patterns in codebase | 30 min |
| 2. Composer bump | Update Laravel + PHPUnit + Pest + Tinker | 5 min |
| 3. Breaking changes fixes | Apply mandatory L13 changes | 1-3 h |
| 4. Attributes migration | Eloquent + Queue properties → Attributes (optional) | 2-4 h |
| 5. Validation | Tests pass, CI green | 30 min |
Most projects: < 1 day total.
bootstrap/app.php and aliases.CACHE_PREFIX, REDIS_PREFIX, SESSION_COOKIE to preserve old behavior if cache invalidation is unacceptable.upgrade-path/
├── 1-composer/ # bump dependencies
├── 2-breaking-fixes/ # mandatory changes
├── 3-attributes/ # optional refactor to Attributes
└── 4-validation/ # tests + sniper
→ See composer-upgrade.md for exact commands.
| Topic | Reference | When to consult |
|---|---|---|
| Composer commands | composer-upgrade.md | Bump dependencies |
| Breaking changes | breaking-changes.md | Fix L13 mandatory updates |
| Attributes migration | attributes-migration.md | Modernize Eloquent/Queue classes |
| Laravel Boost MCP | laravel-boost-mcp.md | Automated /upgrade-laravel-v13 |
| Checklist | checklist.md | Step-by-step validation |
composer require laravel/framework:^13.0 laravel/tinker:^3.0
composer require --dev phpunit/phpunit:^12.0 pestphp/pest:^4.0
composer update
→ See composer-upgrade.md for full sequence.
// bootstrap/app.php
->withMiddleware(function (Middleware $middleware) {
$middleware->preventRequestForgery(except: [
'stripe/*',
'webhook/*',
]);
})
→ See breaking-changes.md for all 12 changes.
# .env — preserve L12 underscore behavior
CACHE_PREFIX=laravel_cache_
REDIS_PREFIX=laravel_database_
SESSION_COOKIE=laravel_session
→ See breaking-changes.md.
feat/laravel-13-upgrade)Laravel Boost MCP /upgrade-laravel-v13 for guided automationmain without CI verification#[Fillable] and $fillable on the same modelpda/pheanstalk: ^8.0 (or ^7.0) if you use Beanstalkdnew static()) inside a model's boot() / trait boot*() — throws LogicException in L13references/attributes-migration.md (opens in a new tab)references/breaking-changes.md (opens in a new tab)references/checklist.md (opens in a new tab)references/composer-upgrade.md (opens in a new tab)references/laravel-boost-mcp.md (opens in a new tab)references/templates/composer.json.md (opens in a new tab)references/templates/upgrade-script.sh.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fusengine/claude-plugins --plugin fuse-laravel23 skills in this plugin
/fusecoreUse when creating modules, understanding FuseCore structure, or implementing features in a FuseCore modular-monolith Laravel project./laravel-ai-sdkUse when integrating AI agents, tool calling, embeddings, structured output, or streaming in Laravel 13 via the `laravel/ai` package./laravel-apiUse when creating API endpoints, transforming responses with API Resources, or handling API authentication, rate limiting, or versioning./laravel-architectureUse when structuring a Laravel project, creating services/repositories/actions, implementing dependency injection, or organizing code layers./laravel-attributesUse when migrating Eloquent models, Jobs, Console commands, Controllers, API Resources, Validation, Factories or Seeders to Laravel 13 PHP attributes./laravel-authUse when implementing user authentication, API tokens, social login, or authorization in Laravel 13.Other plugins' skills for the same job