我在实现 Hubtel SMS Api 时遇到了这个错误。
<?php
namespace App\Http\Controllers\Api;
use Illuminate\Notifications\Notification;
use NotificationChannels\Hubtel\HubtelChannel;
use NotificationChannels\Hubtel\HubtelMessage;
class SendSMS extends Notification
{
public function via($notifiable)
{
return [HubtelChannel::class];
}
public function toSMS($notifiable='yes')
{
// echo "hi";
return (new HubtelMessage)
->from("JabClari")
->to("+923105149080")
->content("Kim Kippo... Sup with you");
}
}
我使用这个并按照正确的说明安装了 Hubtel SMS 频道。
请帮我