Laravel 5 Migration change length of existed column
At least in Laravel 5.6, if it is requiring Doctrine DBAL and you don't want to install it now for any reason, you can try this:
<?php
// ...
Schema::table('users', function ($table) {
DB::statement('ALTER TABLE users MODIFY COLUMN name VARCHAR(50)');
});
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.