Laravel 5.1: class "Doctrine \ DBAL \ Driver \ PDOSqlite \ Driver" not found

I am using laravel 5.1, I am trying to migrate: update, I get an error:

The class 'Doctrine \ DBAL \ Driver \ PDOSqlite \ Driver' was not found in ../ providers / Laravel / framework / SRC / Light / Database /SQLiteConnection.php

[Symfony \ Component \ Debug \ Exception \ FatalErrorException] Class 'Doctrine \ DBAL \ Driver \ PDOSqlite \ Driver' not found

Doctrine / dbal is already required in my composer.json

 "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.1.*",
        "Doctrine/dbal": "^2.5"
    }

So I want to ask what is wrong with my laravel project.

+4
source share
3 answers

, database.sqlite . , , .

+3

- Laravel 5.4 ( doctrine/dbal@^2.5), Blueprint::dropColumn() SQLite. Class 'Doctrine\DBAL\Driver\PDOSqlite\Driver' not found.

0

:

doctrine/dbal composer.json. DBAL Doctrine SQL- :

composer require doctrine/dbal
0

Source: https://habr.com/ru/post/1610649/


All Articles