Answers for "how to move local mysql database columns to laravel migration"

PHP
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
Posted by: Guest on December-01-2020
3

laravel before migration

Schema::table('users', function ($table) {
    $table->string('email')->after('id')->nullable();
});
Posted by: Guest on December-11-2020

Code answers related to "how to move local mysql database columns to laravel migration"

Browse Popular Code Answers by Language