Answers for "create new migration to change data type laravel"

PHP
2

laravel migration integer

$table->integer('votes');
Posted by: Guest on March-22-2021
0

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 "create new migration to change data type laravel"

Browse Popular Code Answers by Language