how to alter table in laravel migration code example
Example 1: laravel rollback last migration
php artisan migrate:rollback --step=1
Example 2: add column in laravel migration
php artisan make:migration add_paid_to_users_table --table=users
Example 3: how to change existing migration laravel
php artisan make:migration update_user_guide_in_product_translations_table
Example 4: change existing migration laravel
php artisan make:migration update_description_in_products_table
Example 5: migrations required field laravel
$table->string('foo')->nullable(false)->change();
Example 6: migrate to an existing table in laravel commad
public function up()
{
Schema::table('users', function($table) {
$table->integer('paid');
});
}