Answers for "php artisan force migrate"

PHP
1

pip install urllib

pip install urllib3
Posted by: Guest on February-10-2021
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

Browse Popular Code Answers by Language