Broadcaster
abstract class Broadcaster implements Broadcaster
Properties
protected array | $channels | The registered channel authenticators. |
|
protected BindingRegistrar | $bindingRegistrar | The binding registrar instance. |
Methods
Register a channel authenticator.
Authenticate the incoming request for a given channel.
Extract the parameters from the given pattern and channel.
Extract the channel keys from the incoming channel name.
Resolve the given parameter binding.
Resolve an explicit parameter binding if applicable.
Resolve an implicit parameter binding if applicable.
Determine if a given key and parameter is implicitly bindable.
Format the channel array into an array of strings.
Get the model binding registrar instance.
Details
at line 37
$this
channel(string $channel, callable $callback)
Register a channel authenticator.
at line 51
protected mixed
verifyUserCanAccessChannel(Request $request, string $channel)
Authenticate the incoming request for a given channel.
at line 76
protected array
extractAuthParameters(string $pattern, string $channel, callable $callback)
Extract the parameters from the given pattern and channel.
at line 94
protected array
extractChannelKeys(string $pattern, string $channel)
Extract the channel keys from the incoming channel name.
at line 109
protected mixed
resolveBinding(string $key, string $value, array $callbackParameters)
Resolve the given parameter binding.
at line 125
protected mixed
resolveExplicitBindingIfPossible(string $key, mixed $value)
Resolve an explicit parameter binding if applicable.
at line 144
protected mixed
resolveImplicitBindingIfPossible(string $key, mixed $value, array $callbackParameters)
Resolve an implicit parameter binding if applicable.
at line 168
protected bool
isImplicitlyBindable(string $key, ReflectionParameter $parameter)
Determine if a given key and parameter is implicitly bindable.
at line 180
protected array
formatChannels(array $channels)
Format the channel array into an array of strings.
at line 192
protected BindingRegistrar
binder()
Get the model binding registrar instance.