alter table laravel code example
Example 1: laravel rollback last migration
php artisan migrate:rollback --step=1
Example 2: laravel change column
Schema::table('users', function (Blueprint $table) {
$table->string('name', 50)->nullable()->change();
});
Example 3: laravel create migration
php artisan make:migration add_votes_to_users_table --table=users
php artisan make:migration create_users_table --create=users
Example 4: rename table migration laravel
Schema::rename($from, $to);