Skip to content

Commit

Permalink
Upgrade to Inertia V2
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjgriffith committed Dec 13, 2024
1 parent e3cb2f8 commit 3fb3e7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Console/InstallsInertiaStacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -226,15 +226,15 @@ 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;
}

// NPM Packages...
$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',
Expand Down

0 comments on commit 3fb3e7a

Please sign in to comment.