Skip to content

Commit c1ef688

Browse files
committed
Enhanced notifiable resolution
1 parent 0f4996d commit c1ef688

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CamooChannel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public function send($notifiable, Notification $notification): mixed
2222
{
2323
$recipient = match (true) {
2424
is_string($notifiable) => $notifiable,
25-
$notifiable instanceof AnonymousNotifiable => $notifiable->routeNotificationFor(__CLASS__),
26-
default => $notifiable->routeNotificationFor('Camoo')
25+
$notifiable instanceof AnonymousNotifiable && $notifiable->routeNotificationFor(__CLASS__) => $notifiable->routeNotificationFor(__CLASS__),
26+
default => $notifiable->routeNotificationFor('camoo')
2727
};
2828

2929
if (! $recipient) {

0 commit comments

Comments
 (0)