Answers for "how to set string length in laravel migration"

PHP
1

laravel migration change column length

Schema::table('users', function ($table) {
    $table->string('name', 50)->change();
});
Posted by: Guest on November-19-2020
1

varchar max length define laravel migration

$table->string('name', 64);
Posted by: Guest on March-19-2020

Code answers related to "how to set string length in laravel migration"

Browse Popular Code Answers by Language