How to Add a Column After another Column in Laravel Migration
In this lesson, we are going to see how to add a column after another column in Laravel migration, the after modifier is used to place a column after another column.
The after modifier
The after modifier is used to place a column after another column.
Schema::table('users', function($table)
{
$table->string('phone')->after('password');
});