change column after migration laravel code example
Example 1: laravel migration change column name
Schema::table('users', function (Blueprint $table) {
$table->renameColumn('from', 'to');
});
Example 2: laravel migration add column after
Schema::table('users', function ($table) {
$table->string('email')->after('id')->nullable();
});