laravel column definition virtualEs code example
Example 1: laravel before migration
Schema::table('users', function ($table) {
$table->string('email')->after('id')->nullable();
});
Example 2: laravel migration
$table->string('name', 100);
Schema::table('users', function ($table) {
$table->string('email')->after('id')->nullable();
});
$table->string('name', 100);