laravel edit table column migration code example
Example 1: rename table migration laravel
Schema::rename($from, $to);
Example 2: laravel migration change column order
public function up()
{
DB::statement("ALTER TABLE example MODIFY COLUMN foo DATE AFTER bar");
}
public function down()
{
DB::statement("ALTER TABLE example MODIFY COLUMN foo DATE AFTER bar");
}