original_string: 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);
          });
      }
code: 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);
          });
      }
code_tokens: 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 ) ; } ) ; }
docstring: Remove reserved fields like `id` `created_at` `updated_at` in form fields.
docstring_tokens: Remove reserved fields like id created_at updated_at in form fields .