2018-06-22 19:44:21 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Broadcast;
|
2018-07-24 08:34:28 +02:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
2018-06-22 19:44:21 +02:00
|
|
|
|
|
|
|
class BroadcastServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
2018-09-10 11:50:53 +02:00
|
|
|
// This has to be done here to avoid "Driver [polycast] is not supported" error
|
|
|
|
$this->app[\Illuminate\Broadcasting\BroadcastManager::class]->extend('polycast', function ($app, array $config) {
|
|
|
|
return new \App\Broadcasting\Broadcasters\PolycastBroadcaster();
|
|
|
|
});
|
|
|
|
|
|
|
|
// This is not needed as we define routes in PolyastServiceProvider
|
|
|
|
//Broadcast::routes();
|
2018-06-22 19:44:21 +02:00
|
|
|
|
|
|
|
require base_path('routes/channels.php');
|
|
|
|
}
|
|
|
|
}
|