View file database/upgrades/20180425132220_rename_guest_table.php
<?php use Phinx\Migration\AbstractMigration; class RenameGuestTable extends AbstractMigration { /** * Migrate Up. */ public function up() { $table = $this->table('guest'); $table->rename('guestbooks'); } /** * Migrate Down. */ public function down() { $table = $this->table('guestbooks'); $table->rename('guest'); } }