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'];
If you would like to revert to previous behavior, update your
config/database.php
file and set 'strict' => false
for your connection.