Laravel Migration to change table name

from the docs laravel.com/docs/5.1/migrations#renaming-and-dropping-tables

To change a table name, you can do this:

Schema::rename($currentTableName, $newTableName);

You can use the drop or dropIfExists methods to remove an existing table:

Schema::drop('users');

Schema::dropIfExists('users');

Just add that to a migration and it should work.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)