Answers for "laravel how to alter column"

PHP
2

laravel change column

Schema::table('users', function (Blueprint $table) {
    $table->string('name', 50)->nullable()->change();
});
Posted by: Guest on April-02-2020
3

laravel migration change column type

public function up()
{
    Schema::table('sometable', function (Blueprint $table) {
        $table->text('text')->change();
    });
}
Posted by: Guest on June-10-2020

Code answers related to "laravel how to alter column"

Browse Popular Code Answers by Language