adding a column in laravel eloquent after table creation code example
Example 1: laravel migration add column after
Schema::table('users', function ($table) {
$table->string('email')->after('id')->nullable();
});
Example 2: add new column in existing table in laravel migration
public function down()
{
Schema::table('users', function($table) {
$table->dropColumn('paid');
});
}