You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Model Validation is not running when we call the Query Builder replace().
Using Timestamps
By default, REPLACE deletes and inserts based on a Primary or Unique Key.
Since we can set in the Model if we want to insert/update the datetimes automatically, it may be good already do this automatically in the Model with $builder->set() for the updated_at column using the replace() method. - I think only for the updated_at because an possible created_at would always be automatically reset.
The text was updated successfully, but these errors were encountered:
Validation
Model Validation is not running when we call the Query Builder
replace()
.Using Timestamps
By default, REPLACE deletes and inserts based on a Primary or Unique Key.
Since we can set in the Model if we want to insert/update the datetimes automatically, it may be good already do this automatically in the Model with
$builder->set()
for theupdated_at
column using thereplace()
method. - I think only for theupdated_at
because an possiblecreated_at
would always be automatically reset.The text was updated successfully, but these errors were encountered: