Laravel 6インストール完了エラー
Laravel 6のインストールが完了すると、次のエラーが発生します.
ソリューション、composer.jsonに加わる
後でコマンドを実行
Symfony\Component\Debug\Exception\FatalErrorException
Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be
compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)
ソリューション、composer.jsonに加わる
"symfony/translation-contracts": "^1.1.6"
"require": {
"php": "^7.2",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.2",
"laravel/tinker": "^1.0",
},
"require": {
"php": "^7.2",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.2",
"laravel/tinker": "^1.0",
"symfony/translation-contracts": "^1.1.6",
},
後でコマンドを実行
composer update
composer dump-autoload