File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,22 @@ class User extends Model implements Commenter
191191}
192192```
193193
194+ ### Configuring the Commenter avatar
195+
196+ To configure the avatar, make sure your User model implements Filament's ` HasAvatar ` interface.
197+
198+ ``` php
199+ use Filament\Models\Contracts\HasAvatar;
200+
201+ class User extends Authenticatable implements Commenter, HasName, HasAvatar
202+ {
203+ public function getFilamentAvatarUrl(): ?string
204+ {
205+ return $this->avatar_url;
206+ }
207+ }
208+ ```
209+
194210### Events
195211
196212Two events are dispatched when a comment is created or reacted to:
Original file line number Diff line number Diff line change 1717 <x-filament::button
1818 wire:click =" save"
1919 size =" sm"
20- >Save </x-filament::button >
20+ >Comment </x-filament::button >
2121
2222 <x-filament::button
2323 x-on:click =" wasFocused = false"
You can’t perform that action at this time.
0 commit comments