jasonc/sms

2.0.0 2020-07-09 01:55 UTC

This package is auto-updated.

Last update: 2022-06-09 06:29:39 UTC


README

安装

$ 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:验证通道