From d6d5a4b448ff8df8f6fcbbcc13bdeb564f960da6 Mon Sep 17 00:00:00 2001 From: distinctm Date: Wed, 23 Jan 2019 13:54:59 -0500 Subject: [PATCH] Move comments into notes section --- readme.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 221723c..f2061e6 100644 --- a/readme.md +++ b/readme.md @@ -16,9 +16,9 @@ Laravel utility to keep records synced between enviroments through source contro "name": "Ferris Bueller", "properties->title": "Leisure Consultant", "phone_numbers->mobile": "555-555-5555", - "phone_numbers->office": "", // empty values are skipped - "_email": "ferris@buellerandco.com", // the criteria/attributes for updateOrCreate are identified with a preleading underscore - "department": { // nested values represent relationships and are returned using where($key, $value)->first() + "phone_numbers->office": "", + "_email": "ferris@buellerandco.com", + "department": { "name": "Management", "location": { "name": "Chicago" @@ -44,4 +44,9 @@ User::updateOrCreate([ ->id, ]); -``` \ No newline at end of file +``` + +## Notes +- empty values are skipped +- the criteria/attributes for updateOrCreate are identified with a preleading underscore +- nested values represent relationships and are returned using where($key, $value)->first()->id \ No newline at end of file