Laravel 8 Unicode 內(nèi)容

2021-07-19 10:56 更新

如果你的短信消息包含 Unicode 字符,需要在構(gòu)造 NexmoMessage 實(shí)例時(shí)調(diào)用 unicode 方法:

/**
 * Get the Nexmo / SMS representation of the notification.
 *
 * @param  mixed  $notifiable
 * @return NexmoMessage
 */
public function toNexmo($notifiable)
{
    return (new NexmoMessage)
                ->content('Your unicode message')
                ->unicode();
} 
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)