please install the doctrine/dbal package. laravel code example Example: doctrine/dbal laravel install composer require doctrine/dbal