Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Comments Laravel Package

happenv-com/filament-comments

Filament Comments adds a comments layer to your Filament admin panel, letting users discuss records and collaborate without leaving the dashboard. Integrate comment threads into resources and pages with a simple, Laravel-friendly setup.

View on GitHub
Deep Wiki
Context7

Getting Started

  • Install the package with Composer using the package name from the README for happenv-com/filament-comments; publish and run migrations/config only if the package docs call for it.
  • Register the package's Filament plugin in the panel provider where comments should appear. If comments are per-record, add the package's relation manager/component to the relevant resource page.
  • Apply the package's commentable trait/contract to models that should receive comments, then verify the relationship and authorization policies for the authenticated user.
  • First use case: add comments to an internal record such as an order, customer, or ticket in a Filament resource. Verify listing, creation, deletion, and permission behavior as a non-admin user before exposing it broadly.
  • Look first at the package README, config file, migrations, and the Filament plugin/relation manager classes. For v2.2.0, also inspect the registered Filament icon aliases so you know which package icons can be overridden without publishing views.
  • v2.2.0 is a minor, drop-in release: no migrations, config keys, or breaking API changes are called out. Existing installs should upgrade normally; the meaningful new capability is icon customization through Filament aliases.

Implementation Patterns

  • Use one commentable model trait/contract consistently across resources, and add the comments UI through a relation manager or reusable panel component rather than duplicating comment forms per resource.
  • Keep comment authorization close to the record: combine the package UI with resource/model policies so users can only view or create comments on records they can already access.
  • For multi-tenant apps, scope the comments relation manager or component query by tenant/record, and test that switching tenants cannot expose another tenant's comments through direct Livewire requests.
  • Customize branding through the new v2.2.0 icon aliases first. Register overrides in the Filament panel/provider or icon alias registry, and only publish views when an alias cannot cover the change.
  • If mentions, notifications, or moderation are part of the workflow, queue notifications and keep comment creation fast. Add explicit policy checks around any "notify all" or mention-resolution logic.
  • Use morph maps for commentable models before creating production comments. Stable morph aliases make later model refactors safer than storing fully qualified class names.
  • In tests, cover the Livewire/Filament interaction: create a comment, reject unauthorized creation, reject cross-tenant access, and verify rendered comment content is escaped/sanitized.
  • For upgrades, run composer update, clear Filament/Laravel caches, and smoke-test the comments UI. No data migration is indicated for v2.2.0.

Gotchas and Tips

  • Icon aliases only affect package icons that actually use the alias. If you previously published and edited package views with hardcoded icons, those local overrides will still win; revert or update them if you want the new alias behavior.
  • Alias keys are package-specific. Find them in the package source or the Filament icon registration rather than guessing; then override through Filament's icon API for your Filament version.
  • After icon or view changes, clear caches (config:clear, view:clear, and Filament asset/component caches as applicable). Stale caches are a common reason an override "doesn't work."
  • Do not rely on the UI alone for authorization. Add record-level policy checks around viewing and creating comments, especially where comments may contain sensitive internal notes.
  • Morph map changes after comments exist can break resolution. Set the morph map before launch, or plan a data migration if you must change stored commentable types.
  • Rich text and mentions need sanitization and escaping. Treat comment bodies as user-generated content even in an admin panel.
  • Notifications and mentions can create noisy loops. Queue them, deduplicate recipients, and avoid notifying the comment author unless intended.
  • Soft-deleted records and comments need deliberate handling: decide whether comments remain visible, are cascade-deleted, or are hidden with the parent record.
  • Config and migration changes should be published only when needed. Prefer the package's extension points, icon aliases, and policies over editing vendor files.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect