Skip to content

[Feat] Bump to Laravel 13 & Inertia v3#1114

Merged
RichardAnderson merged 4 commits into
vitodeploy:4.xfrom
RichardAnderson:feat/inertia-upgrade
May 23, 2026
Merged

[Feat] Bump to Laravel 13 & Inertia v3#1114
RichardAnderson merged 4 commits into
vitodeploy:4.xfrom
RichardAnderson:feat/inertia-upgrade

Conversation

@RichardAnderson

Copy link
Copy Markdown
Member

This pull request introduces a major round of dependency upgrades and related code changes to support Laravel 13, Inertia.js 3, and Vite 8, along with refactors to plugin cache handling and CSRF protection middleware for better Laravel 13 support / guidance. The changes ensure compatibility with new versions, update configuration files, and refactor caching to comply with Laravel 13's stricter serialization rules.

@RichardAnderson RichardAnderson marked this pull request as ready for review May 22, 2026 21:54
@RichardAnderson RichardAnderson requested a review from Copilot May 22, 2026 21:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the application’s core stack to Laravel 13, Inertia.js v3, and Vite 8, and updates related frontend/SSR setup, caching behavior, and test expectations to match new framework/tooling requirements.

Changes:

  • Upgrade PHP/Laravel/Inertia/Vite/PHPUnit dependencies and associated config (Composer, npm, PHPUnit schema, Inertia config).
  • Migrate Inertia client + SSR entrypoints to the Inertia v3 + @inertiajs/vite pages-based setup, and adjust the root template metadata attribute.
  • Refactor plugin caching to store scalar IDs (instead of cached model collections) to align with Laravel 13 cache serialization hardening; adjust tests for updated PHPUnit assertions and data providers.

Reviewed changes

Copilot reviewed 18 out of 20 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vite.config.ts Adds @inertiajs/vite plugin to support Inertia v3 pages resolution.
tests/Unit/Models/ServerModelTest.php Tightens PHPUnit expectations for callback argument typing.
tests/Feature/SourceControlsTest.php Updates data-provider-driven tests to accept expanded provider inputs.
tests/Feature/ServerProvidersTest.php Updates data-provider-driven tests to accept expanded provider inputs.
tests/Feature/API/SourceControlsTest.php Updates API feature tests to accept expanded provider inputs.
tests/Feature/API/ServerProvidersTest.php Updates API feature tests to accept expanded provider inputs.
tests/Feature/API/DNSProvidersTest.php Updates API feature test signature to match data provider shape.
resources/views/app.blade.php Updates Inertia <title> attribute to data-inertia for Inertia v3.
resources/js/ssr.tsx Refactors SSR entrypoint for Inertia v3 and Ziggy route globals.
resources/js/app.tsx Refactors client entrypoint to Inertia v3 pages-based setup.
phpunit.xml Bumps PHPUnit XSD schema to v12.
package.json Upgrades frontend dependencies (Inertia v3, Vite 8, laravel-vite-plugin v3) and adds @inertiajs/vite.
config/inertia.php Updates Inertia configuration structure (SSR options, pages discovery, testing).
config/cache.php Adds Laravel 13 serializable_classes config (disabled) to harden cache unserialization.
composer.lock Locks updated PHP dependencies for Laravel 13 / Inertia v3 compatibility.
composer.json Bumps Laravel framework + related packages, Inertia Laravel adapter, Symfony YAML, PHPUnit.
app/Http/Middleware/PreventRequestForgery.php Migrates CSRF middleware to Laravel 13’s PreventRequestForgery.
app/Http/Kernel.php Switches web middleware stack from VerifyCsrfToken to PreventRequestForgery.
app/Actions/Plugins/PluginCache.php Refactors plugin cache to store scalar plugin IDs rather than model collections.

Comment thread app/Actions/Plugins/PluginCache.php Outdated
Comment thread resources/js/ssr.tsx
@saeedvaziry

Copy link
Copy Markdown
Member

Approved

@RichardAnderson RichardAnderson merged commit 253c3fb into vitodeploy:4.x May 23, 2026
3 checks passed
@RichardAnderson RichardAnderson deleted the feat/inertia-upgrade branch May 23, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants