前提・実現したいこと
Laravel6.8 → 7.0にアップグレードすること
発生している問題・エラーメッセージ
composer update後、Laravelのバージョンを確認したところ、
6.18.38となってしまいます。
エラーメッセージは出ていません。
記述を修正したファイル
Composer.json
"require": { "php": "^7.4", "fideloper/proxy": "^4.0", "laravel/framework": "^7.0", "laravel/tinker": "^2.0", "tymon/jwt-auth": "^1.0" }, "require-dev": { "facade/ignition": "^2.0", "fzaninotto/faker": "^1.4", "mockery/mockery": "^1.0", "nunomaduro/collision": "^4.1", "phpunit/phpunit": "^8.5" },
Handler.php
/** * Report or log an exception. * * @param Throwable $exception * @return void */ public function report(Throwable $exception) { parent::report($exception); } /** * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request * @param Throwable $exception * @return \Illuminate\Http\Response */ public function render($request, Throwable $exception) { return parent::render($request, $exception); }
Session.php
'connection' => env('SESSION_CONNECTION', null),
ターミナルのログ
Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 5 installs, 55 updates, 1 removal - Removing erusev/parsedown (1.7.3) - Updating symfony/polyfill-ctype (v1.13.1 => v1.18.1): Downloading (100%) - Updating phpoption/phpoption (1.7.1 => 1.7.5): Downloading (100%) - Updating vlucas/phpdotenv (v3.6.0 => v3.6.7): Downloading (100%) - Updating symfony/css-selector (v5.0.1 => v5.1.5): Downloading (100%) - Updating tijsverkoyen/css-to-inline-styles (2.2.2 => 2.2.3): Downloading (100%) - Updating symfony/polyfill-php72 (v1.13.1 => v1.18.1): Downloading (100%) - Updating symfony/polyfill-mbstring (v1.13.1 => v1.18.1): Downloading (100%) - Installing symfony/polyfill-php80 (v1.18.1): Downloading (100%) - Updating symfony/var-dumper (v4.4.1 => v4.4.13):Downloading (100%) ) - Updating symfony/routing (v4.4.1 => v4.4.13): Downloading (100%) - Updating symfony/process (v4.4.1 => v4.4.13): Downloading (100%) - Updating symfony/polyfill-php73 (v1.13.1 => v1.18.1): Downloading (100%) - Installing symfony/polyfill-php70 (v1.18.1): Downloading (100%) - Installing symfony/polyfill-intl-normalizer (v1.18.1): Downloading (100%) - Updating symfony/polyfill-intl-idn (v1.13.1 => v1.18.1): Downloading (100%) - Updating symfony/mime (v5.0.1 => v5.1.5): Downloading (100%) - Updating webmozart/assert (1.6.0 => 1.9.1): Downloading (100%) - Updating phpdocumentor/reflection-common (2.0.0 => 2.2.0):Downloading (100%) - Updating phpdocumentor/type-resolver (1.0.1 => 1.3.0): Downloading (100%) - Updating phpdocumentor/reflection-docblock (4.3.2 => 5.2.1): Downloading (100%) - Updating symfony/http-foundation (v4.4.1 => v4.4.13): Downloading (100%) - Updating symfony/event-dispatcher-contracts (v1.1.7 => v1.1.9): Downloading (100%) - Updating symfony/event-dispatcher (v4.4.1 => v4.4.13): Downloading (100%) - Updating psr/log (1.1.2 => 1.1.3): Downloading (100%) - Updating symfony/debug (v4.4.1 => v4.4.13): Downloading (100%) - Updating symfony/error-handler (v4.4.1 => v4.4.13): Downloading (100%) - Updating symfony/http-kernel (v4.4.1 => v4.4.13): Downloading (100%) - Updating symfony/finder (v4.4.1 => v4.4.13): Downloading (100%) - Updating symfony/service-contracts (v2.0.1 => v2.2.0): Downloading (100%) - Updating symfony/console (v4.4.1 => v4.4.13): Downloading (100%) - Updating symfony/polyfill-iconv (v1.13.1 => v1.18.1): Downloading (100%) - Updating doctrine/lexer (1.2.0 => 1.2.1): Downloading (100%) - Updating egulias/email-validator (2.1.11 => 2.1.20): Downloading (100%) - Updating ramsey/uuid (3.9.1 => 3.9.3): Downloading (100%) - Updating opis/closure (3.5.1 => 3.5.7): Downloading (100%) - Updating symfony/translation-contracts (v2.0.1 => v2.2.0):Downloading (100%) - Updating symfony/translation (v4.4.1 => v4.4.13): Downloading (100%) - Updating nesbot/carbon (2.27.0 => 2.39.1): Downloading (100%) - Updating monolog/monolog (2.0.1 => 2.1.1): Downloading (100%) - Installing league/mime-type-detection (1.4.0): Downloading (100%) - Updating league/flysystem (1.0.61 => 1.1.3): Downloading (100%) - Installing league/commonmark (1.5.4): Downloading (100%) - Updating doctrine/inflector (1.3.1 => 2.0.3): Downloading (100%) - Updating laravel/framework (v6.7.0 => v6.18.38):Downloading (100%) ) - Updating fideloper/proxy (4.2.1 => 4.4.0): Downloading (100%) - Updating nikic/php-parser (v4.3.0 => v4.9.1): Downloading (100%) - Updating psy/psysh (v0.9.12 => v0.10.4): Downloading (100%) - Updating laravel/tinker (v2.0.0 => v2.4.2): Downloading (100%) - Updating scrivo/highlight.php (v9.17.1.0 => v9.18.1.2): Downloading (100%) - Updating filp/whoops (2.5.0 => 2.7.3): Downloading (100%) - Updating facade/ignition-contracts (1.0.0 => 1.0.1): Downloading (100%) - Updating facade/flare-client-php (1.3.0 => 1.3.5): Downloading (100%) - Updating facade/ignition (1.13.0 => 1.16.3): Downloading (100%) - Updating hamcrest/hamcrest-php (v2.0.0 => v2.0.1): Downloading (100%) - Updating mockery/mockery (1.3.0 => 1.4.2): Downloading (100%) - Updating theseer/tokenizer (1.1.3 => 1.2.0): Downloading (100%) - Updating doctrine/instantiator (1.3.0 => 1.3.1):Downloading (100%) ) - Updating phpspec/prophecy (1.9.0 => 1.11.1): Downloading (100%) - Updating myclabs/deep-copy (1.9.3 => 1.10.1): Downloading (100%) - Updating phpunit/phpunit (8.5.0 => 8.5.8): Downloading (100%) Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead. Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead. Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. Writing lock file Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi Discovered Package: facade/ignition Discovered Package: fideloper/proxy Discovered Package: laravel/tinker Discovered Package: nesbot/carbon Discovered Package: nunomaduro/collision Package manifest generated successfully. ~~~@~~~MBP laravelapp % php artisan --version Laravel Framework 6.18.38
アップグレード時に参考にしたもの
Laravel公式ドキュメント
PHP: Laravel 7へのアップグレードを試した
Laravel 6.x→7.xバージョンアップ
補足情報(FW/ツールのバージョンなど)
macOs Catalina 10.15.6
初学者のため自力で解決できず、お力を貸していただければ大変有難いです。
よろしくお願いします!
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/09/09 09:56