laravel migration change column type
snippet in php

laravel migration change column type

user3450

public function up()
{
    Schema::table('sometable', function (Blueprint $table) {
        $table->text('text')->change();
    });
}

laravel create migration

user1057

php artisan make:migration add_votes_to_users_table --table=users

php artisan make:migration create_users_table --create=users

laravel migration integer

user1085

$table->bigInteger('votes');

laravel before migration

user2706

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