This commit is contained in:
distinctm
2019-01-24 16:31:01 -05:00
parent 968191127d
commit 24bb6b6d0a
2 changed files with 2 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ fi
``` ```
## Notes ## Notes
- use studly case for model name relationships as JSON keys (example: 'option_group' => 'OptionGroup'). This is important for case sensitive file systems.
- empty values are skipped - empty values are skipped
- the criteria/attributes for updateOrCreate are identified with a preleading underscore - the criteria/attributes for updateOrCreate are identified with a preleading underscore
- nested values represent relationships and are returned using where($key, $value)->first()->id - nested values represent relationships and are returned using where($key, $value)->first()->id

View File

@@ -141,7 +141,7 @@ class Updater
*/ */
protected function getModel(string $name) protected function getModel(string $name)
{ {
return '\\App\\' . pathinfo($name, PATHINFO_FILENAME); return '\\App\\' . studly_case(pathinfo($name, PATHINFO_FILENAME));
} }
/** /**