Laravel: String data, right truncated: 1406 Data too long for column

后端 未结 6 1584
予麋鹿
予麋鹿 2021-02-04 01:18

I have a table with a column \'hotel\'. The project is created in Laravel 5.4, so I used Migrations.

    $table->string(\'hotel\', 50);

Thi

6条回答
  •  终归单人心
    2021-02-04 01:43

    change the type of column fromstring to text.

    Then run a migrate refresh using php artisan migrate:refesh

提交回复
热议问题