ciptohadi-web-id / lumen-notifications
围绕 Laravel Notifications 的实用包装,支持其 artisan 命令
v0.0.1-alpha.1
2018-01-01 23:07 UTC
Requires
- php: >=5.6.4
- guzzlehttp/guzzle: ^6.2
- illuminate/mail: ^5.5
- illuminate/notifications: ^5.5
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2024-09-16 12:02:53 UTC
README
本软件包是围绕 Laravel Notifications 软件包的包装,使其能够与 Lumen 5.x 一起工作
内容
安装
要安装此软件包,我们可以在终端运行以下命令
composer require ciptohadi-web-id/lumen-notifications
之后,我们应该在 bootstrap/app.php 中的“注册服务提供者”部分注册该软件包
$app->register(\ciptohadi\LumenNotifications\LumenNotificationsServiceProvider::class);
使用方法
注册服务提供者后,我们将能够访问以下三个新 artisan 命令,如下所示
要创建一个新的通知,我们运行以下命令
php artisan make:notification [notification-name]
要为通知创建数据库迁移,我们运行以下命令
php artisan notifications:table
要使用 Laravel Notifications 的视图,我们运行以下命令
php artisan lumen-notifications:publish
有关如何使用 Laravel Notifications 的更多信息,我们可以查阅优秀的 Laravel 文档: Laravel Notifications
变更日志
有关最近更改的详细信息,请参阅 CHANGELOG
测试
$ composer test
安全
如果您发现任何安全相关的问题,请通过电子邮件向我发送 ciptohadi79@gmail.com 而不是使用问题跟踪器。
贡献
有关详细信息,请参阅 CONTRIBUTING
致谢
许可证
MIT 许可证(MIT)。有关更多信息,请参阅 许可证文件