Laravel, for a while now, has included functionality for broadcasting server-side events over a WebSocket connection to the client-side. Often, as part of this process, it will prove necessary to authorize the current user. "Do they have permission to access this private channel or not?" Authorizations such as these are registered within your routes/channels.php file.
If this file eventually becomes unwieldy, due to the number of authorizations, you may optionally extract the relevant logic to dedicated channel classes, using php artisan make:channel.
Watch the full series at http://laracasts.com/series/whats-new..., or learn more about Laravel and all things web development at https://laracasts.com.