We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a235700 commit 3868446Copy full SHA for 3868446
src/Jenssegers/Mongodb/Eloquent/Model.php
@@ -237,16 +237,7 @@ public function getAttribute($key)
237
*/
238
protected function getAttributeFromArray($key)
239
{
240
- // Support keys in dot notation.
241
- if (str_contains($key, '.')) {
242
- $attributes = array_dot($this->attributes);
243
-
244
- if (array_key_exists($key, $attributes)) {
245
- return $attributes[$key];
246
- }
247
248
249
- return parent::getAttributeFromArray($key);
+ return array_get($this->attributes, $key);
250
}
251
252
/**
0 commit comments