Skip to content

Commit

Permalink
Fix Test User Model
Browse files Browse the repository at this point in the history
  • Loading branch information
3m1n3nc3 committed Feb 6, 2024
1 parent 98370ba commit f5639bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/KudiSmsChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function send($notifiable, Notification $notification)
try {
$to = $this->getTo($notifiable, $notification);
$message = $notification->toKudiSms($notifiable);

if (is_string($message)) {
$message = new KudiSmsMessage($message);
}
Expand Down
8 changes: 4 additions & 4 deletions tests/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public function routeNotificationForKudiSms()
return $this->phone;
}

// public function phoneNumber(): Attribute
// {
// return Attribute::make(fn () => $this->phone);
// }
public function phoneNumber(): Attribute
{
return Attribute::make(fn () => $this->phone);
}
}

0 comments on commit f5639bf

Please sign in to comment.