Alper Sarı

Laravel 12 Upgrade Notes: The Four Checks That Matter More Than the Banner

Laravel 12 was intentionally a small framework upgrade. The release mostly refreshed dependencies and introduced new starter kits; many existing applications could move without changing application code. “Small upgrade” still does not mean “skip review.” The important work is identifying which documented changes intersect with your app.

Start with dependencies. Check PHP and Composer constraints, first-party packages, test framework versions, and CI images before changing the lockfile. Upgrade the framework in a dedicated pull request so a failing package constraint is not mixed with unrelated refactoring. Run the database migrations and the full application test suite against the same database engine used in production where possible.

Three details deserve attention:

  • Carbon 3: review date arithmetic and return types where your code depends on Carbon behavior.
  • UUIDv7: inspect any model or database assumptions around UUID sorting and creation. The upgrade notes call out this area as a medium-impact change.
  • Local disk root: if you rely on Laravel’s default local disk rather than an explicit configuration, its root changes to storage/app/private. Verify file import/export paths and deployments that expose local files.

Also review SVG validation. The image rule no longer accepts SVG by default; if your product truly needs SVG uploads, opt in deliberately and sanitize them. Allowing SVG is a security and content-handling choice, not a compatibility toggle to apply blindly.

After the code upgrade, inspect config diffs, clear and rebuild caches in a staging deployment, verify storage permissions, and exercise a rollback. This is where a “no code changes required” framework upgrade can still reveal assumptions in the environment.

The Laravel 12 release notes and upgrade guide list the supported versions and behavior changes. Use the versioned guide for your exact starting release.