0
0

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 1 year has passed since last update.

LogicException : Laravel v6 is only compatible with doctrine/dbal 2, in order to use this feature you must require the package "doctrine/dbal:^2.6".

Posted at

エラー内容

LogicException : Laravel v6 is only compatible with doctrine/dbal 2, in order to use this feature you must require the package "doctrine/dbal:^2.6".

解決方法

このエラーは、Laravel 6がdoctrine/dbal 2としか互換性がなく、別のバージョンを使用しようとしているために発生しています。解決するには、以下の手順を実行してください。

  1. composer.jsonファイルを開きます。
  2. "require"セクションで、"doctrine/dbal"のバージョンを"^2.6"に変更します。
  3. コマンドラインでcomposer updateを実行し、変更を反映します。
  4. Laravelアプリケーションを再起動します。
    これで、Laravelアプリケーションがdoctrine/dbal 2.6を使用するようになり、エラーが解決されるはずです。

doctrine/dbalがcomposer.jsonファイルに記載がない場合は、以下コマンドを実行してください。

composer require "doctrine/dbal:2.*"
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?