@@ -155,7 +155,7 @@ public function getAttribute($key)
155
155
}
156
156
157
157
// Dot notation support.
158
- if (Str:: contains ($ key , '. ' ) && Arr::has ($ this ->attributes , $ key )) {
158
+ if (str_contains ($ key , '. ' ) && Arr::has ($ this ->attributes , $ key )) {
159
159
return $ this ->getAttributeValue ($ key );
160
160
}
161
161
@@ -177,7 +177,7 @@ public function getAttribute($key)
177
177
protected function getAttributeFromArray ($ key )
178
178
{
179
179
// Support keys in dot notation.
180
- if (Str:: contains ($ key , '. ' )) {
180
+ if (str_contains ($ key , '. ' )) {
181
181
return Arr::get ($ this ->attributes , $ key );
182
182
}
183
183
@@ -195,7 +195,7 @@ public function setAttribute($key, $value)
195
195
196
196
$ value = $ builder ->convertKey ($ value );
197
197
} // Support keys in dot notation.
198
- elseif (Str:: contains ($ key , '. ' )) {
198
+ elseif (str_contains ($ key , '. ' )) {
199
199
// Store to a temporary key, then move data to the actual key
200
200
$ uniqueKey = uniqid ($ key );
201
201
parent ::setAttribute ($ uniqueKey , $ value );
0 commit comments