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 4f1d005 commit 7a8c53eCopy full SHA for 7a8c53e
src/Model/Model.php
@@ -239,7 +239,6 @@ public function getAttributeValue($key)
239
240
/**
241
* Get the value of the model's primary key.
242
- *
243
* @return mixed
244
*/
245
public function getPrimaryKeyValue()
@@ -248,4 +247,17 @@ public function getPrimaryKeyValue()
248
247
}
249
250
+ /**
251
+ * Handle dynamic method calls into the model.
252
+ *
253
+ * @param $attribute
254
+ * @param $method
255
+ * @return mixed
256
+ */
257
+ public function __call($attribute, $method)
258
+ {
259
+ return $this->attributes[$attribute];
260
+ }
261
+
262
263
0 commit comments