I am learning Laravel 5 and ran into an error when renaming a column in a table.
Created a migration:
public function up()
{
Schema::table('messages', function (Blueprint $table) {
$table->renameColumn('age', 'agee');
});
}
I send a command for migration and I get an error:
In MySqlConnection.php line 65:
Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found
Tried reinstalling in this way:
The package was reinstalled, but the error persisted. How to fix?
your problem because your doctirne/dbal: v3 , try to downgrade to v2 , like this :- doctrine/dbal": "^2.12" this issue related with your problem :- https://github.com/doctrine/dbal/issues/4439