laravel migration add first column in table add id code example
Example: laravel migration add column after
Schema::table('users', function ($table) {
$table->string('email')->after('id')->nullable();
});
Schema::table('users', function ($table) {
$table->string('email')->after('id')->nullable();
});