From 0bb878409f4b327902c7574b4876d26d6d3e94cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Wed, 11 Sep 2024 16:19:40 +0900 Subject: [PATCH] Automation ini...3 --- app/Models/CommonModel.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/Models/CommonModel.php b/app/Models/CommonModel.php index 6a03b3b..0675b42 100644 --- a/app/Models/CommonModel.php +++ b/app/Models/CommonModel.php @@ -80,14 +80,6 @@ abstract class CommonModel extends Model ); return $allowedFields; } - final public function setFields(array $fields): void - { - $this->allowedFields = $fields; - //수동입력인경우 PrimaryKey추가 (array_unshift는 array의 맨앞에 넣기위함) - if (!$this->useAutoIncrement) { - array_unshift($this->allowedFields, $this->getPKField()); - } - } final public function getFieldRules(array $fields, array $rules = []): array { foreach ($fields as $field) {