protected function removeReservedFields()
    {
        if (!$this->isMode(static::MODE_CREATE)) {
            return;
        }

        $reservedColumns = [
            $this->form->model()->getKeyName(),
            $this->form->model()->getCreatedAtColumn(),
            $this->form->model()->getUpdatedAtColumn(),
        ];

        $this->fields = $this->fields()->reject(function (Field $field) use ($reservedColumns) {
            return in_array($field->column(), $reservedColumns, true);
        });
    }
protected function removeReservedFields()
    {
        if (!$this->isMode(static::MODE_CREATE)) {
            return;
        }

        $reservedColumns = [
            $this->form->model()->getKeyName(),
            $this->form->model()->getCreatedAtColumn(),
            $this->form->model()->getUpdatedAtColumn(),
        ];

        $this->fields = $this->fields()->reject(function (Field $field) use ($reservedColumns) {
            return in_array($field->column(), $reservedColumns, true);
        });
    }
protected function removeReservedFields ( ) { if ( ! $ this -> isMode ( static :: MODE_CREATE ) ) { return ; } $ reservedColumns = [ $ this -> form -> model ( ) -> getKeyName ( ) , $ this -> form -> model ( ) -> getCreatedAtColumn ( ) , $ this -> form -> model ( ) -> getUpdatedAtColumn ( ) , ] ; $ this -> fields = $ this -> fields ( ) -> reject ( function ( Field $ field ) use ( $ reservedColumns ) { return in_array ( $ field -> column ( ) , $ reservedColumns , true ) ; } ) ; }
Remove reserved fields like `id` `created_at` `updated_at` in form fields.
Remove reserved fields like id created_at updated_at in form fields .