Thursday, January 31, 2019

Solved - Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found Laravel

No comments
Hi Dear Friends,

In this post We would like to share infinity knowladge My Good experience and Best solution For .

Laravel Examples

Few days ago, i was working on my laravel 5 application and i created some tables using migrations that i required. After sometime i need to change "name" column into "fullname" in users table. I simple created migration for rename of column, But when i run that migration using bellow command:
php artisan migrate
I found bellow error when i run above command:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found
I thought why this type error comes, even i used same syntax of laravel docs. Finally i found we require to install "doctrine/dbal" package for solving this error. without doctrine/dbal package we can not user rename column name. So i run bellow command for install doctrine/dbal package.
composer require doctrine/dbal
after install successfully, run again migration, it works!!!
If you also have this error, try this....
Try this it will help you and for more information click here: Laravel Examples.

Read :

I hope you like this Post, Please feel free to comment below, your Any Idea, suggestion and problems if you face - I am here to Resolve your Any problems.
We hope it can help you...

No comments :

Post a Comment