use Illuminate\Notifications\Notification;
use TuxDaemon\ZenzivaNotificationChannel\ZenzivaMessage;
use TuxDaemon\ZenzivaNotificationChannel\ZenzivaChannel;
class OrderCreated extends Notification
{
public function via($notifiable)
{
return [ZenzivaChannel::class];
}
public function toZenziva($notifiable)
{
return ZenzivaMessage::create("Your order had created!");
}
}
use ZenzivaClient;
class Something
{
public function send($to, $msg)
{
return ZenzivaClient::send("081234567890", "hello world");
}
public function checkBalance()
{
return ZenzivaClient::checkBalance();
}
}