Files
jasonc_sms/README.md
2023-09-11 09:44:39 +08:00

35 lines
439 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Jason/Sms 短信发送扩展
## 安装
```
$ composer require jasonc/sms
$ php artisan vendor:publish --tag='sms'
$ php artisan migrate
```
## 短信发送
```
\Sms::send($mobile, $channel = 'DEFAULT');
```
## 短信验证
```
\Sms::check($mobile, $code, $channel = 'DEFAULT');
```
扩展验证规则
```
sms_check:MOBILEFIELD,CHANNEL 短信验证码验证
MOBILEFIELD手机号码字段名称
CHANNEL验证通道
```