diff --git a/src/SleepingOwl/Admin/FormItems/NamedFormItem.php b/src/SleepingOwl/Admin/FormItems/NamedFormItem.php index c01b4739..4d848fdb 100644 --- a/src/SleepingOwl/Admin/FormItems/NamedFormItem.php +++ b/src/SleepingOwl/Admin/FormItems/NamedFormItem.php @@ -148,7 +148,7 @@ public function getValidationRules() { $table = $this->instance()->getTable(); $item = 'unique:' . $table . ',' . $this->attribute(); - if ($this->instance()->exists()) + if ($this->instance()->exists) { $item .= ',' . $this->instance()->getKey(); }