webpush:Laravel的Webpush通知频道

时间:2021-02-03 12:38:46
【文件属性】:
文件名称:webpush:Laravel的Webpush通知频道
文件大小:17KB
文件格式:ZIP
更新时间:2021-02-03 12:38:46
notifications laravel webpush LaravelPHP Laravel的Web推送通知频道 该软件包使使用Laravel发送Web推送通知变得容易。 安装 您可以通过composer安装该软件包: composer require laravel-notification-channels/webpush 首先,您必须安装服务提供程序(跳过Laravel> = 5.5): // config/app.php 'providers' => [ . . . NotificationChannels \ WebPush \ WebPushServiceProvider ::class, ], 将NotificationChannels\WebPush\HasPushSubscriptions特性添加到您的User模型: use NotificationChannels \ WebPush \ HasPushSubscriptions ; class User extends Model { use HasPushSubscriptions ; } 接下来用以下方法发布迁移: php artisan vend
【文件预览】:
webpush-master
----.github()
--------workflows()
----migrations()
--------create_push_subscriptions_table.php.stub(1012B)
----src()
--------ReportHandlerInterface.php(436B)
--------HasPushSubscriptions.php(2KB)
--------WebPushServiceProvider.php(3KB)
--------ReportHandler.php(1KB)
--------PushSubscription.php(1KB)
--------WebPushChannel.php(3KB)
--------Events()
--------VapidKeysGenerateCommand.php(3KB)
--------WebPushMessage.php(4KB)
----CONTRIBUTING.md(3KB)
----config()
--------webpush.php(1KB)
----LICENSE.md(1KB)
----README.md(5KB)
----.styleci.yml(16B)
----.editorconfig(312B)
----CHANGELOG.md(2KB)
----composer.json(1KB)

网友评论