I'm sure I'm doing something stupid here, but I just can't figure it out at all.
['tld' => $domain_tld],
['cost' => 0, 'test' => 'boo']
);```
My reading of the docs suggests that the above should;
a) Find and return a record that matches 'tld',
b) If it can't find a matching record, it will create one using a merger of both arrays,
c) There should be no updating at all.
```The firstOrCreate method will attempt to locate a database record using the given column / value pairs. If the model can not be found in the database, a record will be inserted with the attributes resulting from merging the first array argument with the optional second array argument:```
What's actually happening is that it's finding a record using 'tld' and it's then _updating_ that found record with the values from the second array.
Before & after record screenshots attached for reference.
Am I miss-reading the docs?
Have I made a stupid mistake somewhere?
Am I just not seeing the wood for the trees?
Thanks!