Laravel 5.4 field doesn't have a default value
问题 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 many matches. A user has many matches. A user has many deals. I am attempting to create a new Match using my Deal object $deal->matches()->create(['user_id'=>$id]); This is my match class, i have defined all needed relationships class Match extends Model { /** * The attributes that are mass assignable. * * @var array */ protected