SQLSTATE[22001]:字符串数据,右截断:1406 第 1 行 'ans' 列的数据太长(SQL:插入“常见问题解答”(“title”、“ans” , `updated_at`,

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'ans' at row 1 (SQL: insert into `faqs` (`title`, `ans`, `updated_at`,

SQLSTATE[22001]:字符串数据,右截断:1406 第 1 行 'ans' 列的数据太长(SQL:插入 faqstitle, ans, updated_at, created_at) 值(Lorem Ipsum 只是印刷和排版行业的虚拟文本。Lorem Ipsum 一直是,t 是一个长期成立的事实上,reader 在查看其布局时会被页面的可读内容分散注意力。使用 Lorem Ipsum 的要点在于它具有或多或少的正态分布的字母,而不是使用 'Content here, content here',让它看起来像可读的英文。许多桌面出版包和网页编辑器现在使用 Lorem Ipsum 作为他们的默认模型文本,搜索 'lorem ipsum' 会发现许多网站仍处于起步阶段。各种多年来,版本不断演变,有时是偶然的,有时是故意的(注入幽默等)。, 2022-01-31 06:41:31, 2022-01-31 06:41:31))

enter image description here

enter image description here

enter image description here enter image description here

ans 类型更改为文本:

$table->text('ans');

并重新迁移:

php artisan migrate:fresh