File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ Laravel utility to keep records synced between enviroments through source contro
1616 "name" : " Ferris Bueller" ,
1717 "properties->title" : " Leisure Consultant" ,
1818 "phone_numbers->mobile" : " 555-555-5555" ,
19- "phone_numbers->office" : " " , // empty values are skipped
20- "_email" :
" [email protected] " ,
// the criteria/attributes for updateOrCreate are identified with a preleading underscore 21- "department" : { // nested values represent relationships and are returned using where($key, $value)->first()
19+ "phone_numbers->office" : " " ,
20+ 21+ "department" : {
2222 "name" : " Management" ,
2323 "location" : {
2424 "name" : " Chicago"
@@ -44,4 +44,9 @@ User::updateOrCreate([
4444 ->id,
4545]);
4646
47- ```
47+ ```
48+
49+ ## Notes
50+ - empty values are skipped
51+ - the criteria/attributes for updateOrCreate are identified with a preleading underscore
52+ - nested values represent relationships and are returned using where($key, $value)->first()->id
You can’t perform that action at this time.
0 commit comments