PHPackages                             xgrug/easysms-notification-channel - 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. xgrug/easysms-notification-channel

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

xgrug/easysms-notification-channel
==================================

EasySms Notification Channel for Laravel.

07PHP

Since Apr 10Pushed 1y agoCompare

[ Source](https://github.com/xgrug/easysms-notification-channel)[ Packagist](https://packagist.org/packages/xgrug/easysms-notification-channel)[ RSS](/packages/xgrug-easysms-notification-channel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

EasySms Notification Channel for Laravel
========================================

[](#easysms-notification-channel-for-laravel)

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

安装
--

[](#安装)

```
composer require leonis/easysms-notification-channel
```

配置
--

[](#配置)

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

    ```
    'providers' => [
        // ...
        Leonis\Notifications\EasySms\EasySmsChannelServiceProvider::class,
    ],
    ```
2. 创建配置文件：

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

使用
--

[](#使用)

1. 创建通知：

    ```
