plugins/laravel-expert/skills/laravel-upgrade-v13/SKILL.md
Use when upgrading a Laravel 12 application to Laravel 13.0. Covers PHP 8.3 requirement, composer commands, breaking changes (PHPUnit 12, Pest 4, VerifyCsrfToken → PreventRequestForgery, cache prefixes, serializable_classes, pheanstalk 8.0+), Attributes migration (Eloquent + Queue), Symfony 7.4/8.0 upgrade, and Laravel Boost MCP automated upgrade.
npx skillsauth add fusengine/agents laravel-upgrade-v13Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Centralized upgrade path from Laravel 12.46 to Laravel 13.0 (released March 17, 2026).
Before ANY upgrade, use TeamCreate to spawn 3 agents:
$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->validateOrigin(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 modelpheanstalk/pheanstalk: ^8.0 if you use Beanstalkdnew Model() calls inside service provider register() — throws LogicException in L13development
Use when optimizing entity-based / semantic SEO 2026. Covers entity maps, Google Knowledge Graph resolution, salience scoring, passage-level ranking, about/sameAs/knowsAbout schema, Cloud Natural Language API validation.
development
Use when running SEO, GEO, schema, Core Web Vitals, sitemap, hreflang, E-E-A-T, AI Overviews, technical SEO, or structured data tasks. Covers full-site audits, single-page analysis, schema markup, content quality, AI search optimization, local SEO, sitemap/robots, internal linking, semantic clustering, and search experience.
development
Use when optimizing search experience (SXO). Covers intent matching, user personas, user stories, page-type analysis, dwell time, scroll depth, pogo-sticking prevention.
development
Use when optimizing local SEO. Covers Google Business Profile, NAP consistency, citations, reviews acquisition, Local Pack ranking, location pages, LocalBusiness schema.