Looking to hire Laravel developers? Try LaraJobs

laravel-sms maintained by sczts

Author
Last update
2021/01/14 09:01 (dev-master)
License
Links
Downloads
13

Comments
comments powered by Disqus

快速开始

  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