diff --git a/src/Console/InstallsInertiaStacks.php b/src/Console/InstallsInertiaStacks.php index 2a8649b7..acd5b831 100644 --- a/src/Console/InstallsInertiaStacks.php +++ b/src/Console/InstallsInertiaStacks.php @@ -15,14 +15,14 @@ trait InstallsInertiaStacks protected function installInertiaVueStack() { // Install Inertia... - if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^1.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) { + if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^2.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) { return 1; } // NPM Packages... $this->updateNodePackages(function ($packages) { return [ - '@inertiajs/vue3' => '^1.0.0', + '@inertiajs/vue3' => '^2.0.0', '@tailwindcss/forms' => '^0.5.3', '@vitejs/plugin-vue' => '^5.0.0', 'autoprefixer' => '^10.4.12', @@ -226,7 +226,7 @@ protected function installInertiaVueSsrStack() protected function installInertiaReactStack() { // Install Inertia... - if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^1.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) { + if (! $this->requireComposerPackages(['inertiajs/inertia-laravel:^2.0', 'laravel/sanctum:^4.0', 'tightenco/ziggy:^2.0'])) { return 1; } @@ -234,7 +234,7 @@ protected function installInertiaReactStack() $this->updateNodePackages(function ($packages) { return [ '@headlessui/react' => '^2.0.0', - '@inertiajs/react' => '^1.0.0', + '@inertiajs/react' => '^2.0.0', '@tailwindcss/forms' => '^0.5.3', '@vitejs/plugin-react' => '^4.2.0', 'autoprefixer' => '^10.4.12',