how add field to table by another migration in laravel 1

how add field to table by another migration in laravel

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

Here is what the above code is Doing:
1. We’re adding a new column to the users table called phone_nr.
2. We’re adding the new column after the id column.

Similar Posts