LoginSignup
2
2

More than 5 years have passed since last update.

Laravelプロジェクトを最新にする

Posted at

フレームワーク本体はcomposerでアップデートできるけど
プロジェクトはGitHubのコミットログ見て手動で修正するしかないのかな?
https://github.com/laravel/laravel

さらっと重要な変更してたりするので地味に困る。
最近だと
composer.jsonのComposerScripts
https://github.com/laravel/laravel/commit/40e5e164a91d12f6d95c2db74cbf592b85448fd6
php artisan clear-compiled でエラーになって composer install が失敗してた。
CIで自動デプロイしてるような環境だといきなり動かなくなる。

routes.phpで['middleware' => ['web']]が必要になった直後に
https://github.com/laravel/laravel/commit/1d5e88d0fb687d8ea57a85f9e5d11e7e63685ae2
不要になったり
https://github.com/laravel/laravel/commit/5c30c98db96459b4cc878d085490e4677b0b67ed
手元の作成済みプロジェクトでは自分でRouteServiceProvider.phpを修正する必要がある。

5.2.*のままでも互換維持されてるとは限らないので安心できない。

2
2
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
2