2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

laravel ver.11→ver.12へのアップグレード

Posted at

つい先日、laravelがver.12にアップデートされたので
バージョンアップを自分のプロジェクトでも実施したので手順を備忘録として残します。

ちなみに、公式のガイドはこちらです。
https://laravel.com/docs/12.x/upgrade#upgrade-12.0

手順

まずは、composer.jsonを編集し、laravelのverを11から12に書き換えます。

"laravel/framework": "^12.0",

※自分の場合、React+Inertiaの環境で構築していましたInertiaを使っている場合は
Inertiaのバージョンアップも必要ですので、composer.jsonをver.2に書き換えてください

"inertiajs/inertia-laravel": "^2.0",

composer.jsonを編集したら、compser updateを実行してください

composer update

バージョンを確認し、ver.12になっていれば成功です。

$php artisan --version
Laravel Framework 12.0.1

以上です。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?