Skip to content

Commit

Permalink
Enhanced notifiable resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
undjike committed Aug 22, 2024
1 parent 0f4996d commit c1ef688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CamooChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public function send($notifiable, Notification $notification): mixed
{
$recipient = match (true) {
is_string($notifiable) => $notifiable,
$notifiable instanceof AnonymousNotifiable => $notifiable->routeNotificationFor(__CLASS__),
default => $notifiable->routeNotificationFor('Camoo')
$notifiable instanceof AnonymousNotifiable && $notifiable->routeNotificationFor(__CLASS__) => $notifiable->routeNotificationFor(__CLASS__),
default => $notifiable->routeNotificationFor('camoo')
};

if (! $recipient) {
Expand Down

0 comments on commit c1ef688

Please sign in to comment.