Laravel 5.4 field doesn't have a default value

后端 未结 7 819
执念已碎
执念已碎 2020-12-14 06:37

I am having this error and none of the googled result i checked is similar to my problem.

I have an application with class Deal, User, and Matches

A deal has

7条回答
  •  执念已碎
    2020-12-14 07:29

    I am using Laravel 8 and fixed this error thorugh this two steps:

    1. move the word from $guarded array to $fillable array in User Mode

    2. Config.database.php: 'strict' => false in the array of 'mysql'

提交回复
热议问题