1 Star 0 Fork 0

cqtlyqs/laravel_sms_support

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

介绍

sms component for laravel

使用说明

step1. 安装

composer require ktnw/sms 

step2. 发布

php artisan vendor:publish --provider="Ktnw\sms\Providers\SmsServiceProvider"

step3. 执行命令

php artisan support:sms

step4. 配置config/smsConfig.php
step5. 订单日志表数据迁移 database/migrations/2022_01_21_135810_create_sms_log.php可根据业务需求自行扩展。
扩展后执行迁移:

php artisan migrate --path database/migrations/2022_01_21_135810_create_sms_log.php

若未进行扩展,也可执行以下命令进行迁移:

php artisan migrate --path vendor/ktnw/sms/src/database/migrations/2022_01_21_135810_create_sms_log.php

注意: 1. step2中会把SmsController发布到app\Http\Controllers\Api目录中。若不需要,可自行删除。
2. SmsController中包含基本的发送短信相关的功能。
1). 获取图形验证码; 2). 校验图形验证码; 3). 发送短信验证码; 4). 校验短信验证码
3. 可根据业务需求,自行扩展SmsController的功能。
4. 发送短信功能可参见SmsServiceProvider中的send方法。
5. 可根据业务需求,继承SmsBaseService类,自行扩展其他功能。

MIT License <<<<<<< HEAD Copyright (c) 2022 cqtlyqs ======= Copyright (c) 2022 cqtlyqs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. >>>>>>> 93ef57f70c5ecd6aba9fcfd1fb2972c7bce4e62b

简介

sms component for laravel 展开 收起
README
MIT
取消

发行版

暂无发行版

贡献者

全部

语言

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/cqtlyqs/laravel_sms_support.git
git@gitee.com:cqtlyqs/laravel_sms_support.git
cqtlyqs
laravel_sms_support
laravel_sms_support
master

搜索帮助