Artisan migration error “Class 'Doctrine\\DBAL\\Driver\\PDOMySql\\Driver' not found”?

0 votes

When trying to run a migration I get the error Artisan migration

error:Class 'Doctrine\\DBAL\\Driver\\PDOMySql\\Driver' not found

I have read the questions here and also see the notes to add:

doctrine/dbal": "~2.3 in the requires section of composer.json

Github Bug Report

However, I don't understand what has happened. I created table a few days ago with no issue.

I can't figure out what to do after adding that dependency in composer.son.

I don't want to accidentally update any other packages.

php laravel symfony laravel-5

Apr 6 in Laravel by kartik
• 11,290 points
90 views

1 answer to this question.

0 votes

Hello @kartik,

This message shows up if you want to edit column in a database.

To solve it do:

  • add doctrine/dbal dependency to composer.json
  • and use the composer require doctrine/dbal command
Hope this work!!
Thank you!!
answered Apr 6 by Niroj
• 22,790 points

Related Questions In Laravel

0 votes
1 answer

Error [PDOException]: Could not Find Driver in PostgreSQL?

Hii, I got this problem too. I have ...READ MORE

answered Mar 31 in Laravel by Niroj
• 22,790 points
591 views
0 votes
1 answer

Class ClassName does not exist:ReflectionException in Laravel?

Hello @lkartik, Perform a composer update, then composer dump-autoload. If the ...READ MORE

answered Mar 31 in Laravel by Niroj
• 22,790 points
148 views
0 votes
1 answer

Error: laravel.log could not be opened?

Hello, Never use 777 for directories on your ...READ MORE

answered Apr 2 in Laravel by Niroj
• 22,790 points
313 views
0 votes
1 answer

Error:Laravel [InvalidArgumentException] Script “post-install-cmd” is not defined in this package

Hello @kartik, Do composer global update before laravel new <project-name> and you'll ...READ MORE

answered Apr 6 in Laravel by Niroj
• 22,790 points
52 views
0 votes
1 answer

How to make anchor tag with routing using Laravel?

Hey @kartik, First you have to go to ...READ MORE

answered Mar 18 in Laravel by Niroj
• 22,790 points
434 views
0 votes
1 answer

What is redirection in Laravel?

Named route is used to give specific ...READ MORE

answered Mar 18 in Laravel by Niroj
• 22,790 points
62 views
0 votes
1 answer

How to install Laravel via composer?

Hello, This is simple you just need to ...READ MORE

answered Mar 23 in Laravel by Niroj
• 22,790 points
64 views
0 votes
1 answer

What are named routes in Laravel and How can specify route names for controller actions?

Hey @kartik, Named routing is another amazing feature of ...READ MORE

answered Mar 23 in Laravel by Niroj
• 22,790 points
151 views
0 votes
1 answer

Error:Class 'App\Http\Controllers\App\Model' not found?

Hello, In your code you're resolving the Tag class as ...READ MORE

answered Apr 3 in Laravel by Niroj
• 22,790 points
418 views
0 votes
1 answer

Error:Class '\App\User' not found in Laravel when changing the namespace in Laravel?

Hello @kartik Go to config/auth.php and change App\User:class ...READ MORE

answered Apr 3 in Laravel by Niroj
• 22,790 points
414 views