From 2a075a54171190b6db9749b4969ef0dc07e89417 Mon Sep 17 00:00:00 2001 From: Iqbal Maulana Date: Sun, 11 Oct 2020 19:50:22 +0700 Subject: [PATCH] fix: fix method originalIsEquivalent unsupported --- src/Model/AbstractModel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/AbstractModel.php b/src/Model/AbstractModel.php index 47c092a..55daa3b 100644 --- a/src/Model/AbstractModel.php +++ b/src/Model/AbstractModel.php @@ -244,12 +244,13 @@ public function getCasts(): array /** * @inheritdoc */ - public function originalIsEquivalent($key, $current) + public function originalIsEquivalent($key) { if (!array_key_exists($key, $this->original)) { return false; } + $current = $this->getAttribute($key); $original = $this->getOriginal($key); if ($current === $original) {