class Illuminate / Console / View / Components / Component
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
abstract

Component

Properties

protected

$output OutputStyle

The output style implementation.

Default: null
protected

$mutators array

The list of mutators to apply on the view data.

Default: null

Methods

public

__construct ( $output ) : void

Creates a new component instance.

Parameters

protected

renderView ( $view , $data , $verbosity ) : void

Renders the given view.

Parameters

  • $view string
  • $data Illuminate\...\Arrayable|array
  • $verbosity int
protected

compile ( $view , $data ) : void

Compile the given view contents.

Parameters

  • $view string
  • $data array
protected

mutate ( $data , $mutators ) : array|string

Mutates the given data with the given set of mutators.

Parameters

  • $data array|string
  • $mutators array
protected

usingQuestionHelper ( $callable ) : mixed

Eventually performs a question using the component's question helper.

Parameters

  • $callable callable