From f39ad936fd928ce7df7193076a2b348340424616 Mon Sep 17 00:00:00 2001 From: mychidarko Date: Wed, 4 Dec 2024 02:03:55 +0000 Subject: [PATCH] feat: add overload to skip calling get() --- src/Auth/Model.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Auth/Model.php b/src/Auth/Model.php index 03932ab..f91efdf 100644 --- a/src/Auth/Model.php +++ b/src/Auth/Model.php @@ -117,4 +117,9 @@ public function __set($name, $value) { $this->dataToSave[$name] = $value; } + + public function __call($name, $arguments) + { + return $this->get()->$name(...$arguments); + } }