class
Illuminate
/
Foundation
/
Console
/
ChannelListCommand
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
ChannelListCommand
Extends
Properties
protected
$name string
The console command name.
Default: 'channel:list'
protected
$description string
The console command description.
Default: 'List all registered private broadcast channels'
protected
static
$terminalWidthResolver Closure |null
The terminal width resolver callback.
Default: null
Methods
protected
displayChannels ( $channels ) : void
Display the channel information on the console.
Parameters
- $channels Illuminate\...\Collection
protected
forCli ( $channels ) : array
Convert the given channels to regular CLI output.
Parameters
- $channels Illuminate\...\Collection
protected
determineChannelCountOutput ( $channels , $terminalWidth ) : string
Determine and return the output for displaying the number of registered chanels in the CLI output.
Parameters
- $channels Illuminate\...\Collection
- $terminalWidth int
public
static
getTerminalWidth ( ) : int
Get the terminal width.
public
static
resolveTerminalWidthUsing ( $resolver ) : void
Set a callback that should be used when resolving the terminal width.
Parameters
- $resolver Closure |null