Skip to content

Commit

Permalink
feat: add overload to skip calling get()
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Dec 4, 2024
1 parent 884f04a commit f39ad93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Auth/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,9 @@ public function __set($name, $value)
{
$this->dataToSave[$name] = $value;
}

public function __call($name, $arguments)
{
return $this->get()->$name(...$arguments);
}
}

0 comments on commit f39ad93

Please sign in to comment.