Skip to content

Inertia.js v2.0 compatibility #671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 95 commits into
base: 1.x
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
a720de1
Install and run Pint
reinink May 25, 2024
c8f9b44
Make changelog consistent with previous entries
reinink May 25, 2024
e68596e
Drop support for Laravel 8 and 9 (#629)
reinink May 27, 2024
971d42d
Update changelog
reinink May 27, 2024
2db5eb2
Update CHANGELOG.md
driesvints May 28, 2024
7ad2ffb
deferred props
joetannenbaum Jul 9, 2024
369faff
lazy -> optional
joetannenbaum Jul 9, 2024
8edbd02
new meta key, nested version -> assetVersion under meta key
joetannenbaum Jul 12, 2024
4be6289
introduce the concept of ignore first load
joetannenbaum Jul 18, 2024
88b00ba
simplify app call detection logic
joetannenbaum Jul 18, 2024
336809f
clear history from the server
joetannenbaum Jul 23, 2024
95434d6
mergeable props
joetannenbaum Jul 29, 2024
fa70b17
eager prefetch via config
joetannenbaum Aug 1, 2024
0c99750
wip
joetannenbaum Aug 8, 2024
a60f761
Replace md5 with xxhash
RobertBoes Aug 9, 2024
61b1c89
Update the hash value for "Inertia"
RobertBoes Aug 9, 2024
f6ad746
encrypt history
joetannenbaum Sep 27, 2024
b198c78
fixing tests
joetannenbaum Oct 3, 2024
e00319c
fixed spelling error
joetannenbaum Oct 3, 2024
7b473f4
removed eager loading as it landed in vite main
joetannenbaum Oct 3, 2024
da906d5
added history related props to tests
joetannenbaum Oct 3, 2024
141e693
Update DeferPropTest.php
joetannenbaum Oct 3, 2024
931130e
test for defer + merge
joetannenbaum Oct 3, 2024
289222e
encrypt/clear history
joetannenbaum Oct 3, 2024
735d20f
merge props test
joetannenbaum Oct 3, 2024
1a99ec8
history middleware tests
joetannenbaum Oct 3, 2024
935be8d
Update Response.php
joetannenbaum Oct 3, 2024
4905907
Update DeferPropTest.php
joetannenbaum Oct 3, 2024
c639445
Update ResponseFactoryTest.php
joetannenbaum Oct 3, 2024
22b22cd
merge and defer prop tests
joetannenbaum Oct 3, 2024
9b26d03
assertions for defer + merge tests
joetannenbaum Oct 3, 2024
7d702c6
Formatting
reinink Oct 10, 2024
31fed76
Delete ViteEagerPrefetch.php
joetannenbaum Oct 10, 2024
141256b
fixed dot config merging
joetannenbaum Oct 10, 2024
402a52e
store history clearing in session so it also works with redirects
joetannenbaum Oct 18, 2024
a836013
Merge pull request #677 from inertiajs/encryption-redirect-test
joetannenbaum Oct 18, 2024
9d39da3
Add deepMerge method for enhanced property merging
HichemTab-tech Oct 26, 2024
5576c83
Fix merge logic in Response class filter
HichemTab-tech Oct 26, 2024
a74619c
Add deep merge prop functionality and corresponding tests
HichemTab-tech Oct 26, 2024
830d982
Refactor response property merging logic
HichemTab-tech Oct 26, 2024
4901e35
[2.x] Update dependencies
crynobone Nov 20, 2024
1558bac
[2.x] Supports PHP 8.4
crynobone Nov 20, 2024
91935b0
wip
crynobone Nov 20, 2024
7ee78a9
wip
crynobone Nov 20, 2024
a071794
upgrade github action dependencies
joetannenbaum Nov 20, 2024
4aa876b
Update tests.yml
joetannenbaum Nov 20, 2024
49f9305
Update tests.yml
joetannenbaum Nov 20, 2024
111d38b
Merge pull request #689 from inertiajs/upgrade-github-actions
joetannenbaum Nov 20, 2024
fad74bc
Merge branch '2.x' into patch-2
joetannenbaum Nov 20, 2024
166f25a
Merge pull request #687 from crynobone/patch-2
joetannenbaum Nov 20, 2024
1f84639
fixed situation where lazy functions were always being evaluated
joetannenbaum Nov 20, 2024
75410d7
resolve closures via app
joetannenbaum Nov 20, 2024
af3d0f3
public -> protected
joetannenbaum Nov 20, 2024
f557ed3
Merge pull request #688 from inertiajs/lazy-properties-fix
joetannenbaum Dec 3, 2024
d5e1d51
Merge pull request #686 from crynobone/patch-1
joetannenbaum Dec 5, 2024
0259e37
Update changelog
reinink Dec 13, 2024
443c78b
Call `toArray()` on `Arrayable` props resolved from the Container
pascalbaljet Dec 17, 2024
4f8105c
Handle SSR URLs with trailing slashes
simon-tma Jan 13, 2025
e078b45
resolve closure first
rodrigopedra Jan 15, 2025
9042b6e
[2.x] Supports Laravel 12
crynobone Jan 26, 2025
6a8228c
Replace `array_merge` with spread operator in `middleware.stub`
osbre Jan 26, 2025
46b9e9e
Update inertia.php
bram-pkg Feb 11, 2025
d855ad1
allow laravel 12
taylorotwell Feb 18, 2025
655a37d
Update CHANGELOG
taylorotwell Feb 18, 2025
32e8014
Merge pull request #709 from crynobone/inertia-2-laravel-12
joetannenbaum Feb 19, 2025
3b40127
fix props that extends Responsable after closures / lazy props
d8vjork Mar 11, 2025
ae5398b
Update PHPDoc annotations for ResponseFactory class methods
mohammadrasoulasghari Mar 13, 2025
12c4f73
Create coding-standards.yml
joetannenbaum Apr 9, 2025
0246b27
Merge branch '2.x' into pr/HichemTab-tech/679
joetannenbaum Apr 9, 2025
ea7c003
Fix code styling
joetannenbaum Apr 9, 2025
3672f11
Update ServiceProviderTest.php
joetannenbaum Apr 9, 2025
3660cac
wip
joetannenbaum Apr 9, 2025
bb812e1
Fix code styling
joetannenbaum Apr 9, 2025
d584a2f
Merge pull request #679 from HichemTab-tech/feature/add-deep-merge-props
joetannenbaum Apr 9, 2025
2c0ad4a
wip
joetannenbaum Apr 9, 2025
8e1b7e2
Update README.md
joetannenbaum Apr 9, 2025
5fc7a81
Merge branch '2.x' into pr/mohammadrasoulasghari/723
joetannenbaum Apr 10, 2025
47427a1
Update ResponseFactory.php
joetannenbaum Apr 10, 2025
48fb7b9
Fix code styling
joetannenbaum Apr 10, 2025
b648a30
Merge pull request #723 from mohammadrasoulasghari/docs/improve-respo…
joetannenbaum Apr 10, 2025
3680b24
Merge branch '2.x' of github.com:inertiajs/inertia-laravel into 2.x
joetannenbaum Apr 10, 2025
d208951
Update Response.php
joetannenbaum Apr 10, 2025
9114fe8
Fix code styling
joetannenbaum Apr 10, 2025
2eb800f
Update inertia.php
joetannenbaum Apr 10, 2025
f33ba45
Merge pull request #714 from bram-pkg/patch-3
joetannenbaum Apr 10, 2025
13fc77e
Merge pull request #710 from osbre/patch-2
joetannenbaum Apr 10, 2025
fa3fcce
Merge branch '2.x' into pr/rodrigopedra/706
joetannenbaum Apr 10, 2025
0b2f826
Fix code styling
joetannenbaum Apr 10, 2025
3f2d28d
Merge pull request #706 from rodrigopedra/2.x
joetannenbaum Apr 10, 2025
91b6c53
Update HttpGateway.php
joetannenbaum Apr 10, 2025
6276378
Merge pull request #705 from simon-tma/patch-1
joetannenbaum Apr 10, 2025
ff666e1
Fix code styling
joetannenbaum Apr 10, 2025
23a6f3b
Merge pull request #696 from pascalbaljet/2.x
joetannenbaum Apr 10, 2025
248e815
Merge pull request #653 from RobertBoes/replace-md5-with-xxhash
joetannenbaum Apr 10, 2025
f1321d4
Update CHANGELOG
joetannenbaum Apr 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Code of Conduct

The Laravel Code of Conduct can be found in the [Laravel documentation](https://laravel.com/docs/contributions#code-of-conduct).
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!--
Please only send a pull request to branches which are currently supported: https://laravel.com/docs/releases#support-policy

If you are unsure which branch your pull request should be sent to, please read: https://laravel.com/docs/contributions#which-branch

Pull requests without a descriptive title, thorough description, or tests will be closed.

In addition, please describe the benefit to end users; the reasons it does not break any existing features; how it makes building web applications easier, etc.
-->
92 changes: 92 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Security Policy

**PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, [SEE BELOW](#reporting-a-vulnerability).**

## Supported Versions

Only the latest major version receives security fixes.

## Reporting a Vulnerability

If you discover a security vulnerability within Laravel, please send an email to Taylor Otwell at [email protected]. All security vulnerabilities will be promptly addressed.

### Public PGP Key

```
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP v2.0.8
Comment: Report Security Vulnerabilities to [email protected]

xsFNBFugFSQBEACxEKhIY9IoJzcouVTIYKJfWFGvwFgbRjQWBiH3QdHId5vCrbWo
s2l+4Rv03gMG+yHLJ3rWElnNdRaNdQv59+lShrZF7Bvu7Zvc0mMNmFOM/mQ/K2Lt
OK/8bh6iwNNbEuyOhNQlarEy/w8hF8Yf55hBeu/rajGtcyURJDloQ/vNzcx4RWGK
G3CLr8ka7zPYIjIFUvHLt27mcYFF9F4/G7b4HKpn75ICKC4vPoQSaYNAHlHQBLFb
Jg/WPl93SySHLugU5F58sICs+fBZadXYQG5dWmbaF5OWB1K2XgRs45BQaBzf/8oS
qq0scN8wVhAdBeYlVFf0ImDOxGlZ2suLK1BKJboR6zCIkBAwufKss4NV1R9KSUMv
YGn3mq13PGme0QoIkvQkua5VjTwWfQx7wFDxZ3VQSsjIlbVyRL/Ac/hq71eAmiIR
t6ZMNMPFpuSwBfYimrXqqb4EOffrfsTzRenG1Cxm4jNZRzX/6P4an7F/euoqXeXZ
h37TiC7df+eHKcBI4mL+qOW4ibBqg8WwWPJ+jvuhANyQpRVzf3NNEOwJYCNbQPM/
PbqYvMruAH+gg7uyu9u0jX3o/yLSxJMV7kF4x/SCDuBKIxSSUI4cgbjIlnxWLXZC
wl7KW4xAKkerO3wgIPnxNfxQoiYiEKA1c3PShWRA0wHIMt3rVRJxwGM4CwARAQAB
zRJ0YXlsb3JAbGFyYXZlbC5jb23CwXAEEwEKABoFAlugFSQCGy8DCwkHAxUKCAIe
AQIXgAIZAQAKCRDKAI7r/Ml7Zo0SD/9zwu9K87rbqXbvZ3TV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YUtJ1o+XNCwdVxzarYEuUabhAfDiVTu9n8wTr
YVvnriSFOjNvOY9wdLAa56n7/qM8bzuGpoBS5SilXgJvITvQfWPvg7I9C3QhwK1S
F6B1uquQGbBSze2wlnMbKXmhyGLlv9XpOqpkkejQo3o58B+Sqj4B8DuYixSjoknr
pRbj8gqgqBKlcpf1wD5X9qCrl9vq19asVOHaKhiFZGxZIVbBpBOdvAKaMj4p/uln
yklN3YFIfgmGPYbL0elvXVn7XfvwSV1mCQV5LtMbLHsFf0VsA16UsG8A/tLWtwgt
0antzftRHXb+DI4qr+qEYKFkv9F3oCOXyH4QBhPA42EzKqhMXByEkEK9bu6skioL
mHhDQ7yHjTWcxstqQjkUQ0T/IF9ls+Sm5u7rVXEifpyI7MCb+76kSCDawesvInKt
WBGOG/qJGDlNiqBYYt2xNqzHCJoC
=zXOv
-----END PGP PUBLIC KEY BLOCK-----
```
3 changes: 3 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Support Questions

The Laravel support guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions#support-questions).
12 changes: 12 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: fix code styling

on: [push]

permissions:
contents: write

jobs:
lint:
uses: laravel/.github/.github/workflows/coding-standards.yml@main
with:
php: "8.3"
4 changes: 2 additions & 2 deletions .github/workflows/facade.yml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ name: facades
on:
push:
branches:
- 'master'
- "master"

jobs:
update:
@@ -16,7 +16,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
55 changes: 14 additions & 41 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -12,49 +12,21 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.3, 7.4, "8.0", 8.1, 8.2, 8.3]
laravel: [8, 9, 10, 11]
php: [8.1, 8.2, 8.3, 8.4]
laravel: [10, 11, 12]
stability: ["prefer-lowest", "prefer-stable"]
exclude:
- php: 7.3
laravel: 9
- php: 7.3
- php: 8.4
laravel: 10
- php: 7.3
laravel: 11
- php: 7.4
laravel: 9
- php: 7.4
laravel: 10
- php: 7.4
laravel: 11
- php: '8.0'
laravel: 10
- php: '8.0'
laravel: 11
- php: 8.1
laravel: 6
- php: 8.1
laravel: 7
- php: 8.1
laravel: 11
- php: 8.2
laravel: 6
- php: 8.2
laravel: 7
- php: 8.2
laravel: 8
- php: 8.3
laravel: 6
- php: 8.3
laravel: 7
- php: 8.3
laravel: 8
- php: 8.1
laravel: 12

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} (w/ ${{ matrix.stability }})
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
@@ -66,7 +38,7 @@ jobs:
coverage: none

- name: Set Minimum PHP 8.1 Versions
uses: nick-invision/retry@v1
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
@@ -76,32 +48,33 @@ jobs:
if: matrix.php >= 8.1 && matrix.stability == 'prefer-lowest'

- name: Set Minimum PHP 8.2 Versions
uses: nick-invision/retry@v1
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: |
composer require nesbot/carbon:^2.62.1 --dev --${{ matrix.stability }} --no-update --no-interaction
if: matrix.php >= 8.2 && matrix.stability == 'prefer-lowest'
if: matrix.php >= 8.2 && matrix.stability == 'prefer-lowest' && matrix.laravel < 12

- name: Set Minimum PHP 8.2 Versions and Laravel > 11
uses: nick-invision/retry@v1
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: |
composer require phpunit/phpunit:^10.4 --dev --${{ matrix.stability }} --no-update --no-interaction
composer require "orchestra/testbench:^9.2|^10.0" --dev --${{ matrix.stability }} --no-update --no-interaction
composer require "phpunit/phpunit:^10.4|^11.5" --dev --${{ matrix.stability }} --no-update --no-interaction
if: matrix.php >= 8.2 && matrix.stability == 'prefer-lowest' && matrix.laravel >= 11

- name: Set Laravel version
uses: nick-invision/retry@v1
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: composer require "laravel/framework=^${{ matrix.laravel }}" --no-interaction --no-update

- name: Install dependencies
uses: nick-invision/retry@v1
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
28 changes: 0 additions & 28 deletions .php-cs-fixer.dist.php

This file was deleted.

57 changes: 50 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,62 @@
# Release Notes

## [Unreleased](https://github.com/inertiajs/inertia-laravel/compare/v1.2.0...1.x)
## [Unreleased](https://github.com/inertiajs/inertia-laravel/compare/v2.0.2...2.x)

- Add "always" props using new `Inertia::always()` wrapper ([#627](https://github.com/inertiajs/inertia-laravel/pull/627))
- Nothing!

## [v2.0.2](https://github.com/inertiajs/inertia-laravel/compare/v2.0.1...v2.0.2) - 2025-04-10

### What's Changed

* [2.x] Supports Laravel 12 by [@crynobone](https://github.com/crynobone) in https://github.com/inertiajs/inertia-laravel/pull/709
* Add Inertia::deepMerge Method for Handling Complex Data Merges in Responses by [@HichemTab-tech](https://github.com/HichemTab-tech) in https://github.com/inertiajs/inertia-laravel/pull/679
* Improve PHPDoc annotations for ResponseFactory class by [@mohammadrasoulasghari](https://github.com/mohammadrasoulasghari) in https://github.com/inertiajs/inertia-laravel/pull/723
* fix props that extends Responsable after closures / lazy props by [@d8vjork](https://github.com/d8vjork) in https://github.com/inertiajs/inertia-laravel/pull/722
* [2.x] Allow environment config for `ssr.enabled`, `ssr.url`, and `history.encrypt` by [@bram-pkg](https://github.com/bram-pkg) in https://github.com/inertiajs/inertia-laravel/pull/714
* Replace `array_merge` with spread operator in `middleware.stub` by [@osbre](https://github.com/osbre) in https://github.com/inertiajs/inertia-laravel/pull/710
* [2.x] Resolve Closure before checking if a prop implements the Arrayable contract by [@rodrigopedra](https://github.com/rodrigopedra) in https://github.com/inertiajs/inertia-laravel/pull/706
* Handle SSR URLs with trailing slashes by [@simon-tma](https://github.com/simon-tma) in https://github.com/inertiajs/inertia-laravel/pull/705
* [2.x] Call `toArray()` on `Arrayable` props resolved from the Container by [@pascalbaljet](https://github.com/pascalbaljet) in https://github.com/inertiajs/inertia-laravel/pull/696
* [2.x] Replace md5 with xxhash by [@RobertBoes](https://github.com/RobertBoes) in https://github.com/inertiajs/inertia-laravel/pull/653

### New Contributors

* [@HichemTab-tech](https://github.com/HichemTab-tech) made their first contribution in https://github.com/inertiajs/inertia-laravel/pull/679
* [@mohammadrasoulasghari](https://github.com/mohammadrasoulasghari) made their first contribution in https://github.com/inertiajs/inertia-laravel/pull/723
* [@d8vjork](https://github.com/d8vjork) made their first contribution in https://github.com/inertiajs/inertia-laravel/pull/722
* [@bram-pkg](https://github.com/bram-pkg) made their first contribution in https://github.com/inertiajs/inertia-laravel/pull/714
* [@osbre](https://github.com/osbre) made their first contribution in https://github.com/inertiajs/inertia-laravel/pull/710
* [@simon-tma](https://github.com/simon-tma) made their first contribution in https://github.com/inertiajs/inertia-laravel/pull/705
* [@pascalbaljet](https://github.com/pascalbaljet) made their first contribution in https://github.com/inertiajs/inertia-laravel/pull/696

**Full Changelog**: https://github.com/inertiajs/inertia-laravel/compare/v2.0.1...v2.0.2

## [v2.0.1](https://github.com/inertiajs/inertia-laravel/compare/v2.0.0...v2.0.1) - 2025-02-18

- Allow Laravel 12.x.

**Full Changelog**: https://github.com/inertiajs/inertia-laravel/compare/v2.0.0...v2.0.1

## [v2.0.0](https://github.com/inertiajs/inertia-laravel/compare/v1.2.0...2.0.0)

- Add support for Inertia.js v2.0.0
- Add `Inertia::defer()` to support deferred props
- Add `Inertia::merge()` to support merging props on client
- Add `Inertia::always()` for props that should always be included ([#627](https://github.com/inertiajs/inertia-laravel/pull/627))
- Add `Inertia::clearHistory()` and `Inertia::encryptHistory()` methods, encryption config, and encryption middleware
- Deprecated `Inertia::lazy()` in favor of `Inertia::optional()`
- Drop support for Laravel 8 and 9 ([#629](https://github.com/inertiajs/inertia-laravel/pull/629))

## [v1.2.0](https://github.com/inertiajs/inertia-laravel/compare/v1.1.0...v1.2.0) - 2024-05-17

* [1.x] Make commands lazy by [@timacdonald](https://github.com/timacdonald) in https://github.com/inertiajs/inertia-laravel/pull/601
* [1.x] Persistent properties by [@lepikhinb](https://github.com/lepikhinb) in https://github.com/inertiajs/inertia-laravel/pull/621
* [1.x] Exclude properties from partial responses by [@lepikhinb](https://github.com/lepikhinb) in https://github.com/inertiajs/inertia-laravel/pull/622
- Make commands lazy ([#601](https://github.com/inertiajs/inertia-laravel/pull/601))
- Add persistent properties ([#621](https://github.com/inertiajs/inertia-laravel/pull/621))
- Exclude `except` props from partial reloads ([#622](https://github.com/inertiajs/inertia-laravel/pull/622))

## [v1.1.0](https://github.com/inertiajs/inertia-laravel/compare/v1.0.0...v1.1.0) - 2024-05-16

* Support dot notation in partial requests by [@lepikhinb](https://github.com/lepikhinb) in https://github.com/inertiajs/inertia-laravel/pull/620
* [1.x] Add `$request->inertia()` IDE helper by [@ycs77](https://github.com/ycs77) in https://github.com/inertiajs/inertia-laravel/pull/625
- Support dot notation in partial requests ([#620](https://github.com/inertiajs/inertia-laravel/pull/620))
- Add `$request->inertia()` IDE helper ([#625](https://github.com/inertiajs/inertia-laravel/pull/625))

## [v1.0.0](https://github.com/inertiajs/inertia-laravel/compare/v0.6.11...v1.0.0) - 2024-03-08

16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -13,3 +13,19 @@
</p>

Visit [inertiajs.com](https://inertiajs.com/) to learn more.

## Contributing

Thank you for considering contributing to Inertia! You can read the contribution guide [here](.github/CONTRIBUTING.md).

## Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).

## Security Vulnerabilities

Please review [our security policy](https://github.com/inertiajs/inertia-laravel/security/policy) on how to report security vulnerabilities.

## License

Inertia is open-sourced software licensed under the [MIT license](LICENSE.md).
Loading