php artisan change column name to table code example
Example 1: laravel migration change column name
Schema::table('users', function (Blueprint $table) {
$table->renameColumn('from', 'to');
});
Example 2: migrations required field laravel
$table->string('foo')->nullable(false)->change();