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"
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"
git how to see changes made by a commit
git show <commit sha1> # Notice that the default option is HEAD.
add a new column to existing table in a migration
// for Laravel 5+
php artisan make:migration add_email_to_users_table --table=users
public function up()
{
Schema::table('users', function($table) {
$table->integer('email');
});
}
public function down()
{
Schema::table('users', function($table) {
$table->dropColumn('email');
});
}
php artisan migrate
alter table add column
ALTER TABLE table
ADD COLUMN column VARCHAR (255) NOT NULL AFTER column;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us