Laravel 5.4 field doesn’t have a default value

Remove the guarded array and add the fillable instead:

protected $fillable = ['user_id', 'deal_id'];

Leave a Comment