4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Laravel5.6から5.7へのアップグレード

Posted at

Laravel5.6(5.6.33)から5.7(5.7.9)にアップグレードしました。

手順は本家を参考
https://laravel.com/docs/5.7/upgrade

まずはcomposer.json内のlaravel/framework5.7.*に書き換えてアップデート

laravel-query-detector

N+1検知用のライブラリがなんかひっかかった

Error when upgrading when Laravel 5.6 to Laravel 5.7 · Issue #39 · beyondcode/laravel-query-detector · GitHub

全く同じで0.4.1だったので、composer.jsonのバージョンを0.6に書き換えて

laravel-query-detectorだけを先にアップデート。

hamburgscleanest/laravel-guzzle-throttle

今度はhttpクライアントライブラリがひっかかった。

issue見てみたがそれらしいのが見当たらずreleases見たらLaravel 5.7 Compatibilityの文字が。

composer.jsonのバージョンを2.0から3.0に書き換え。

こちらはilluminate/support 5.7が必須になっているのでLaravelと同時にアップデート

Likelihood Of Impact: Very High

とりあえずVery Highだけ対応

無事終了

少ないけどテストもok

$ composer test
> phpunit
PHPUnit 6.5.13 by Sebastian Bergmann and contributors.

....................................                              36 / 36 (100%)

Time: 8.78 seconds, Memory: 32.00MB

OK (36 tests, 131 assertions)
4
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?