Answers for "how to refresh column values in sql table in laravel migration"

PHP
4

git commit all changes

#Add all files which have been modified (including tracked and untracked)
git add -A
#Commit changes with a message
git commit -m "some message"
Posted by: Guest on May-29-2020
2

laravel make migration update table

php artisan make:migration add_paid_to_users_table --table=users
Posted by: Guest on July-20-2021
1

drop column table in migration if exist in laravel

Schema::table('users', function (Blueprint $table) {
     if (Schema::hasColumn('users', 'phone')) {
              $table->dropColumn('phone');
		}
});
Posted by: Guest on August-04-2021

Code answers related to "how to refresh column values in sql table in laravel migration"

Browse Popular Code Answers by Language