sczts/laravel-sms

dev-master 2021-01-14 08:01 UTC

This package is auto-updated.

Last update: 2021-01-14 08:02:42 UTC


README

  1. 使用 composer 安装

    composer require sczts/laravel-sms
    
  2. 发布配置文件

    php artisan vendor:publish --provider="Sczts\Sms\Providers\LaravelServiceProvider"
    
  3. .env 添加环境变量

    # 短信配置
    SMS_DEFAULT=lin_kai
    SMS_SUFFIX="【XXXXXX】"
    # 凌凯短信配置
    SMS_LINKAI_ID=XXXXXXX
    SMS_LINKAI_PWD=XXXXXXX
    SMS_LINKAI_HOST=http://sdk2.028lk.com/sdk2/BatchSend2.aspx