laravel migrations change code example
Example 1: laravel migration rollback
To rollback one step:
php artisan migrate:rollback
To rollback multiple steps:
php artisan migrate:rollback --step=[x]
To drop all tables and reload all migrations:
php artisan migrate:fresh
Example 2: how to change existing migration laravel
php artisan make:migration update_user_guide_in_product_translations_table
Example 3: change existing migration laravel
php artisan make:migration update_description_in_products_table
Example 4: migrate to an existing table in laravel commad
public function up()
{
Schema::table('users', function($table) {
$table->integer('paid');
});
}