{"repo":"kirschbaum-development/commentions","free":true,"listed":false,"github":"https://github.com/kirschbaum-development/commentions","clone":"git clone https://github.com/kirschbaum-development/commentions.git","description":"Commentions is a drop-in package for Filament that allows you to add comments to your resources with mentions and reactions.","language":"PHP","stars":151,"topics":["filament","laravel","livewire"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Commentions is a drop-in package for Filament that allows you to add comments to your resources. You can configure it so your users are mentionable in the comments, and it dispatches events so you can handle mentions in your own application however you like. Installation Usage Upgrading Security Credits Sponsorship License Installation 1. Install the package via Composer: 2. Run the installer Usage 1. Register the assets 2. In your User model implement the Commenter interface. 3. In the model you want to add comments, implement the Commentable interface and the HasComments trait. Usage with Filament There are a couple of ways to use Commentions with Filament. 1. Register the component in your Filament Infolists: This works for Filament 3 and 4. If you wish to make the comments more distinct from the rest of the page, we recommend wrapping them in a Section . For Filament 3: For Filament 4: 2. Or in your table actions: If you are using Filament 3, you must use CommentsTableAction in your table's actions array: If you are using Filament 4, you should use CommentsAction in recordActions instead: 3. Or as a header action: This works for Filament 3 and 4. 4. Or directly in form schemas for Edit pages (Filament 4): View file contents Filament 3: Filament 4: To make the form comments readonly, pass the readonly flag in the viewData: Note: For View pages, continue using the infolist approach (option 1) as it works perfectly in that context. Readonly Mode You can make comments readonl","default_branch":null,"files":null,"tree":[],"storefront":"/r/kirschbaum-development","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kirschbaum-development/commentions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}