Skip to content

Commit edb335d

Browse files
committed
Support inertia v2
1 parent 5eaeeca commit edb335d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"require": {
1414
"php": ">=8.2",
1515
"ergebnis/json-printer": "^3.5",
16-
"inertiajs/inertia-laravel": ">=1.0",
16+
"inertiajs/inertia-laravel": "^1.0|^2.0",
1717
"laravel/framework": ">=11.0",
1818
"laravel/prompts": ">=0.1",
1919
"symfony/console": ">=7.0"

src/Console/InstallCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function handle(): void
6161

6262
$this->js = $this->option('ts') ? 'ts' : 'js';
6363

64-
$this->composer = new Composer(new Filesystem(), $cwd);
64+
$this->composer = new Composer(new Filesystem, $cwd);
6565

6666
$this->npm = $this->createNpm($cwd);
6767

@@ -149,7 +149,7 @@ protected function installInertiaLaravel(): void
149149
$this->info(' Installing inertiajs/inertia-laravel package');
150150

151151
$this->runProcessCommand(
152-
$this->findComposer().' require inertiajs/inertia-laravel',
152+
$this->findComposer().' require inertiajs/inertia-laravel:^2.0',
153153
workingPath: base_path()
154154
);
155155

@@ -387,7 +387,7 @@ protected function installInertiaVue(): void
387387
{
388388
$this->info(' Installing @inertiajs/vue3');
389389

390-
$this->npm->addDev('@inertiajs/vue3', '^1.0.15');
390+
$this->npm->addDev('@inertiajs/vue3', '^2.0.0');
391391

392392
$js = $this->js;
393393

0 commit comments

Comments
 (0)