Laravel 5 Migration change length of existed column

Regarding documentation, your example should work:

Schema::table('users', function ($table) {
    $table->string('name', 50)->change();
});

Just run php artisan migrate command to execute it.

Leave a Comment