laravel generate database schema using php 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);