We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4425e61 commit fdeef97Copy full SHA for fdeef97
config/filament-comments.php
@@ -48,4 +48,9 @@
48
* The attribute used to display the user's name.
49
*/
50
'user_name_attribute' => 'name',
51
+
52
+ /*
53
+ * Authenticatable model class
54
+ */
55
+ 'authenticatable' => \App\Models\User::class,
56
];
src/Models/FilamentComment.php
@@ -23,9 +23,9 @@ class FilamentComment extends Model
23
24
public function user(): BelongsTo
25
{
26
- $authenticatable = app(Authenticatable::class);
+ $authenticatable = config('filament-comments.authenticatable');
27
28
- return $this->belongsTo($authenticatable::class, 'user_id');
+ return $this->belongsTo($authenticatable, 'user_id');
29
}
30
31
public function subject(): BelongsTo
0 commit comments