Skip to content

Commit 6c6bbd0

Browse files
authoredFeb 20, 2025··
Supports Laravel 12 and Inertia.js 2 (#1564)
* Supports Laravel 12 Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> * Support Inertia.js 2 Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com> --------- Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent 621ff5d commit 6c6bbd0

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed
 

‎.github/workflows/tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: true
1818
matrix:
1919
php: [8.2, 8.3, 8.4]
20-
laravel: [11]
20+
laravel: [11, 12]
2121

2222
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2323

@@ -49,7 +49,7 @@ jobs:
4949
fail-fast: true
5050
matrix:
5151
stack: [inertia, livewire]
52-
laravel: ['11.x-dev']
52+
laravel: ['11.x-dev', 'dev-master']
5353

5454
name: Test Stubs - Laravel ${{ matrix.laravel }} - ${{ matrix.stack }}
5555

@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: Setup Laravel
6767
run: |
68-
composer create-project laravel/laravel:^${{ matrix.laravel }} .
68+
composer create-project laravel/laravel:${{ matrix.laravel }} .
6969
composer require laravel/jetstream:@dev --no-interaction --no-update
7070
composer config repositories.jetstream '{"type": "path", "url": "jetstream"}' --file composer.json
7171

‎composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
"require": {
1717
"php": "^8.2.0",
1818
"ext-json": "*",
19-
"illuminate/console": "^11.0",
20-
"illuminate/support": "^11.0",
19+
"illuminate/console": "^11.0|^12.0",
20+
"illuminate/support": "^11.0|^12.0",
2121
"laravel/fortify": "^1.20",
2222
"mobiledetect/mobiledetectlib": "^4.8.08",
2323
"symfony/console": "^7.0"
2424
},
2525
"require-dev": {
26-
"inertiajs/inertia-laravel": "^1.0",
26+
"inertiajs/inertia-laravel": "^2.0",
2727
"laravel/sanctum": "^4.0",
2828
"livewire/livewire": "^3.3",
2929
"mockery/mockery": "^1.0",
30-
"orchestra/testbench": "^9.0",
30+
"orchestra/testbench": "^9.0|^10.0",
3131
"phpstan/phpstan": "^1.10",
32-
"phpunit/phpunit": "^10.4"
32+
"phpunit/phpunit": "^11.0"
3333
},
3434
"autoload": {
3535
"psr-4": {

‎src/Console/InstallCommand.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ protected function livewireRouteDefinition()
344344
protected function installInertiaStack()
345345
{
346346
// Install Inertia...
347-
if (! $this->requireComposerPackages('inertiajs/inertia-laravel:^1.0', 'tightenco/ziggy:^2.0')) {
347+
if (! $this->requireComposerPackages('inertiajs/inertia-laravel:^2.0', 'tightenco/ziggy:^2.0')) {
348348
return false;
349349
}
350350

@@ -355,7 +355,7 @@ protected function installInertiaStack()
355355
// Install NPM packages...
356356
$this->updateNodePackages(function ($packages) {
357357
return [
358-
'@inertiajs/vue3' => '^1.0.14',
358+
'@inertiajs/vue3' => '^2.0',
359359
'@tailwindcss/forms' => '^0.5.7',
360360
'@tailwindcss/typography' => '^0.5.10',
361361
'@vitejs/plugin-vue' => '^5.0.0',

0 commit comments

Comments
 (0)
Please sign in to comment.