PHPackages                             gengxuliang/laravel-sms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. gengxuliang/laravel-sms

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

gengxuliang/laravel-sms
=======================

EasySms Notification Channel for Laravel.

v1.0.1(6y ago)010MITPHP

Since Apr 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gengxuliang/laravel-sms)[ Packagist](https://packagist.org/packages/gengxuliang/laravel-sms)[ RSS](/packages/gengxuliang-laravel-sms/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel发短信扩展
============

[](#laravel发短信扩展)

使用 [overtrue/easy-sms](https://github.com/overtrue/easy-sms) 发送 Laravel 消息通知，并记录日志。

安装
--

[](#安装)

```
$ composer require gengxuliang/laravel-sms
```

配置
--

[](#配置)

1. 在 config/app.php 注册 ServiceProvider (Laravel 5.5 + 无需手动注册)：

    ```
    'providers' => [
        Gengxuliang\LaravelSms\LaravelSmsServiceProvider::class,
    ],
    ```
2. 创建配置文件：

    ```
    $ php artisan vendor:publish --provider="Gengxuliang\LaravelSms\LaravelSmsServiceProvider"
    ```
3. 修改应用根目录下的 config/easysms.php 中对应的参数即可。

使用
--

[](#使用)

1. 创建通知：

    ```
    $ php artisan make:notification  SmsCodeNotification
    ```

    ```
