Alter the table on laravel migration code example
Example 1: rename table migration laravel
Schema::rename($from, $to);
Example 2: migrations required field laravel
$table->string('foo')->nullable(false)->change();
Schema::rename($from, $to);
$table->string('foo')->nullable(false)->change();