Skip to content

Add comment to RelationManager Model #23

@ddoddsr

Description

@ddoddsr

Is there a simple way to add comments at the end or side of a modal form belonging to a relationManager?

is there a method where I can insert the necessary line <livewire:comments :model="$article"/> into the view of the modal?

perhaps using something like

FilamentView::registerRenderHook(
      PanelsRenderHook::BODY_END,
          fn (): string => Blade::render('<livewire:comments :model="$lead"/>'),
          scopes: [
               \App\Filament\Resources\LeadResource\Pages\CreateLead::class,
               \App\Filament\Resources\LeadResource\Pages\EditLead::class,
            ],
);

This doesnt work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions