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) {