[Feat] Bump to Laravel 13 & Inertia v3#1114
Merged
RichardAnderson merged 4 commits intoMay 23, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
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/vitepages-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. |
Member
|
Approved |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.