Broadcaster

class Broadcaster implements Broadcaster (View source)

Properties

protected array $channels The registered channel authenticators.

Methods

$this channel(string $channel, callable $callback)

Register a channel authenticator.

mixed verifyUserCanAccessChannel(Request $request, string $channel)

Authenticate the incoming request for a given channel.

array extractAuthParameters(string $pattern, string $channel)

Extract the parameters from the given pattern and channel.

array formatChannels(array $channels)

Format the channel array into an array of strings.

Details

$this channel(string $channel, callable $callback)

Register a channel authenticator.

Parameters

string $channel
callable $callback

Return Value

$this

protected mixed verifyUserCanAccessChannel(Request $request, string $channel)

Authenticate the incoming request for a given channel.

Parameters

Request $request
string $channel

Return Value

mixed

protected array extractAuthParameters(string $pattern, string $channel)

Extract the parameters from the given pattern and channel.

Parameters

string $pattern
string $channel

Return Value

array

protected array formatChannels(array $channels)

Format the channel array into an array of strings.

Parameters

array $channels

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Broadcasting/Broadcasters/Broadcaster.html