title: Laravel 5.8 Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found
body: <hr />
  <p><strong>Objective</strong>: Changing columns in MySQL with laravel migration, however raises the error below</p>
  <blockquote>
  <p>To change columns in mysql tables using migration requires the installation of the 'doctrine / dbal' dependency. Read the documentation on the link beside [https://laravel.com/docs/5.8/migrations#modifying-columns][1]</p>
  </blockquote>
  <p><strong>Wrong choice for laravel 5.8</strong>: <code>$ composer require doctrine/dbal</code></p>
  <p><strong>Problem</strong>:</p>
  <pre><code>    $ php artisan migrate
           Migrating: 2021_01_14_031415_my_chage_migrate
  </code></pre>
  <hr />
  <pre><code>   Symfony\Component\Debug\Exception\FatalThrowableError  : Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found    
    at ...\vendor\laravel\framework\src\Illuminate\Database\MySqlConnection.php:65
      61|      * @return \Doctrine\DBAL\Driver\PDOMySql\Driver
      62|      */
      63|     protected function getDoctrineDriver()
      64|     {
    &gt; 65|         return new DoctrineDriver;
      66|     }
      67|
      68|     /**
      69|      * Bind values to their parameters in the given statement.
  
    Exception trace:
  </code></pre>
  <hr />