Skip to content

409 response on Notes field #16

@BrodyT

Description

@BrodyT

For anyone having this issue on nova 3+, I've submitted a pull request for a fix already but until that is merged you can use this as a workaround.

inside each resource that you wish to have notes for, you must define:

public function fieldsForIndex(Request $request): array
{
  return array_merge(
    $this->fields($request),
    [
        MorphMany::make('Notes')->hideFromDetail()->hideFromIndex()->hideWhenCreating()->hideWhenUpdating(),
    ]
  );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions