Answers for "how to change column name and type in migration file"

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

Code answers related to "how to change column name and type in migration file"

Browse Popular Code Answers by Language