Do you have installed all your dependencies? Maybe composer install will solve the problem on your remote server.
'Doctrine\DBAL\Driver\PDOMySql\Driver' not found
Something very very strange is happening on my Laravel 5.1 app.
In local I don't have any problem at all when doing "artisan migrate" but in production (which is an exact copy of my local version) I get this error:
PHP Fatal error: Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found in /var/www/vhosts/profexpress.com/v2/dev/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php on line 64 [Symfony\Component\Debug\Exception\FatalErrorException] Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found
I know I can solve this issue by adding "doctrine/dbal": "~2.3" to my composer.json file but I don't want to do that. I want my local and remote composer files to be the exact same.
Any idea how to solve that?
Many thanks.
Please or to participate in this conversation.