Answers for "migration change field type"

PHP
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
0

update column type laravel migration

$table-><column_type>('<column_name>')->change();
Posted by: Guest on January-11-2022

Code answers related to "migration change field type"

Browse Popular Code Answers by Language