【问题标题】:how to SMS notification send by laravel如何通过 laravel 发送短信通知
【发布时间】:2019-11-07 13:02:31
【问题描述】:

我有付费批量短信面板,但没有设置通过 laravel 项目发送短信后客户如何购买产品。 请任何人帮助我

API URL (GET & POST) : http://sms.natoreit.com/smsapi?api_key=(APIKEY)&type=text&contacts=(NUMBER)&senderid=(Approved Sender ID)&msg=(消息内容)

路线

{
  type : "post",
  url : "http://sms.natoreit.com/smsapi",
  data : {
    "api_key" : "{your api key}",
    "senderid" : "{sender id}",
    "type" : "{content type}",
    "scheduledDateTime" : "{schedule date time}",
    "msg" : "{your message}",
    "contacts" : "88017xxxxxxxx+88018xxxxxxxx"
  }
}

Route::post('/order/confirm','WelcomeController@order_confirm')->name('order_confirm');

公共函数 order_confirm($id)

{

???????????????????????????

}

需要短信发送客户电话号码

【问题讨论】:

    标签: notifications sms


    【解决方案1】:

    您可以在 Laravel 中使用Laravel SMS API plugin 轻松发送短信。

    您需要在config/sms-api.php 中定义您的短信网关配置。

    完成后,您可以将其用作:

    smsapi()->gateway('GATEWAY_NAME')->sendMessage("TO", "Message");
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多