代碼: 選擇全部
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found
To rename a column, you may use the renameColumn method on the Schema builder. Before renaming a column, be sure to add the "doctrine/dbal" dependency to your composer.json file:
Schema::table('users', function ($table) {
$table->renameColumn('from', 'to');
});