@@ -155,7 +155,7 @@ public function getAttribute($key)
155155 }
156156
157157 // Dot notation support.
158- if (Str:: contains ($ key , '. ' ) && Arr::has ($ this ->attributes , $ key )) {
158+ if (str_contains ($ key , '. ' ) && Arr::has ($ this ->attributes , $ key )) {
159159 return $ this ->getAttributeValue ($ key );
160160 }
161161
@@ -177,7 +177,7 @@ public function getAttribute($key)
177177 protected function getAttributeFromArray ($ key )
178178 {
179179 // Support keys in dot notation.
180- if (Str:: contains ($ key , '. ' )) {
180+ if (str_contains ($ key , '. ' )) {
181181 return Arr::get ($ this ->attributes , $ key );
182182 }
183183
@@ -195,7 +195,7 @@ public function setAttribute($key, $value)
195195
196196 $ value = $ builder ->convertKey ($ value );
197197 } // Support keys in dot notation.
198- elseif (Str:: contains ($ key , '. ' )) {
198+ elseif (str_contains ($ key , '. ' )) {
199199 // Store to a temporary key, then move data to the actual key
200200 $ uniqueKey = uniqid ($ key );
201201 parent ::setAttribute ($ uniqueKey , $ value );
0 commit comments