Skip to content

Instantly share code, notes, and snippets.

@gcsawargi
Created January 16, 2018 12:35
Show Gist options
  • Save gcsawargi/4b1d737aa997ac9a9b6ff496bd36f9a9 to your computer and use it in GitHub Desktop.
Save gcsawargi/4b1d737aa997ac9a9b6ff496bd36f9a9 to your computer and use it in GitHub Desktop.
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Broadcast;
class BroadcastServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Broadcast::routes();
// Broadcast::routes( [ 'middleware' => [ 'user.api' ] ] );
require base_path('routes/channels.php');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment