Add Another Field In Existing Migration Laravel

[Solved] Add Another Field In Existing Migration Laravel | Php Frameworks Laravel - Code Explorer | yomemimo.com
Question : add another field in existing migration laravel

Answered by : blushing-bear-zhodxoh6445m

php artisan make:migration add_paid_to_users_table --table=users

Source : https://stackoverflow.com/questions/16791613/add-a-new-column-to-existing-table-in-a-migration | Last Update : Thu, 07 May 20

Question : how set field after another field in migration in laravel

Answered by : mohamad-shahkhajeh

Schema::table('users', function($table)
{ $table->string('phone_nr')->after('id');
});

Source : https://stackoverflow.com/questions/20982538/add-sql-table-column-before-or-after-specific-other-column-by-migrations-in-la | Last Update : Wed, 11 Aug 21

Question : laravel add column to table

Answered by : energetic-elk-qv5ck0sgo9bx

Schema::table('users', function (Blueprint $table) {	$table->dateTime('verify_date')->nullable()->after("password_updated_at");
});

Source : | Last Update : Wed, 08 Apr 20

Answers related to add another field in existing migration laravel

Code Explorer Popular Question For Php Frameworks Laravel