mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-02-13 14:52:57 +00:00
Move comments into notes section
This commit is contained in:
11
readme.md
11
readme.md
@@ -16,9 +16,9 @@ Laravel utility to keep records synced between enviroments through source contro
|
|||||||
"name": "Ferris Bueller",
|
"name": "Ferris Bueller",
|
||||||
"properties->title": "Leisure Consultant",
|
"properties->title": "Leisure Consultant",
|
||||||
"phone_numbers->mobile": "555-555-5555",
|
"phone_numbers->mobile": "555-555-5555",
|
||||||
"phone_numbers->office": "", // empty values are skipped
|
"phone_numbers->office": "",
|
||||||
"_email": "ferris@buellerandco.com", // the criteria/attributes for updateOrCreate are identified with a preleading underscore
|
"_email": "ferris@buellerandco.com",
|
||||||
"department": { // nested values represent relationships and are returned using where($key, $value)->first()
|
"department": {
|
||||||
"name": "Management",
|
"name": "Management",
|
||||||
"location": {
|
"location": {
|
||||||
"name": "Chicago"
|
"name": "Chicago"
|
||||||
@@ -45,3 +45,8 @@ User::updateOrCreate([
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 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
|
||||||
Reference in New Issue
Block a user