lamungu/laravel-sync-broadcaster 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lamungu/laravel-sync-broadcaster

Composer 安装命令:

composer require lamungu/laravel-sync-broadcaster

包简介

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

README 文档

README

Installation

  • Require this package with composer using the following command:
composer require lamungu/laravel-sync-broadcaster
  • After updating composer, add the service provider to the providers array in config/app.php
  • Ensure your Laravel Broadcast Service Provider is also enabled
'providers' => [
    /*
     * Laravel Framework Service Providers...
     */
     
    // ...
    
    Lamungu\LaravelSyncBroadcaster\SyncBroadcastServiceProvider::class,
    
    // ...
]

Laravel 5.5 uses Package Auto-Discovery, so it doesn't require you to manually add the ServiceProvider.

  • Add the following to your broadcasting.php file:
    'connections' => [
    
        // ...
        
        'sync' => [
            'driver' => 'sync',
            'accountSid' => env('TWILIO_ACCOUNT_SID'),
            'authToken' => env('TWILIO_AUTH_TOKEN'),
            'serviceSid' => env('TWILIO_SYNC_SERVICE_SID'),
            'key' => env('TWILIO_SYNC_KEY'),
            'secret' => env('TWILIO_SYNC_SECRET')
        ]
        
        // ...
    ]
  • Finally add the following Environment Variables to your .env file
# Enable Twilio Sync as a Broadcasting Driver
BROADCAST_DRIVER=sync

# Replace the values for the ones found in your twilio account
TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_AUTH_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_SYNC_SERVICE_SID=SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_SYNC_API_KEY=SKxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_SYNC_API_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固