|
1 | 1 | <?php |
2 | 2 |
|
| 3 | +use App\Models\User; |
| 4 | +use Kirschbaum\Commentions\Comment; |
| 5 | +use Kirschbaum\Commentions\Listeners\SendUserMentionedNotification; |
| 6 | +use Kirschbaum\Commentions\Notifications\UserMentionedInComment; |
| 7 | +use Kirschbaum\Commentions\Policies\CommentPolicy; |
| 8 | + |
3 | 9 | return [ |
4 | 10 | /* |
5 | 11 | |-------------------------------------------------------------------------- |
|
18 | 24 | |-------------------------------------------------------------------------- |
19 | 25 | */ |
20 | 26 | 'commenter' => [ |
21 | | - 'model' => \App\Models\User::class, |
| 27 | + 'model' => User::class, |
22 | 28 | ], |
23 | 29 |
|
24 | 30 | /* |
|
27 | 33 | |-------------------------------------------------------------------------- |
28 | 34 | */ |
29 | 35 | 'comment' => [ |
30 | | - 'model' => \Kirschbaum\Commentions\Comment::class, |
31 | | - 'policy' => \Kirschbaum\Commentions\Policies\CommentPolicy::class, |
| 36 | + 'model' => Comment::class, |
| 37 | + 'policy' => CommentPolicy::class, |
32 | 38 | ], |
33 | 39 |
|
34 | 40 | /* |
|
74 | 80 |
|
75 | 81 | 'channels' => explode(',', env('COMMENTIONS_NOTIFICATIONS_MENTIONS_CHANNELS', 'mail')), |
76 | 82 |
|
77 | | - 'listener' => \Kirschbaum\Commentions\Listeners\SendUserMentionedNotification::class, |
78 | | - 'notification' => \Kirschbaum\Commentions\Notifications\UserMentionedInComment::class, |
| 83 | + 'listener' => SendUserMentionedNotification::class, |
| 84 | + 'notification' => UserMentionedInComment::class, |
79 | 85 |
|
80 | 86 | 'mail' => [ |
81 | 87 | 'subject' => env('COMMENTIONS_NOTIFICATIONS_MENTIONS_MAIL_SUBJECT', 'You were mentioned in a comment'), |
|
0 commit comments