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

AnonymousComponent

Extends

Properties

protected

$view string

The component view.

Default: null
protected

$data array

The component data.

Default: []

Methods

public

__construct ( $view , $data ) : void

Create a new anonymous component instance.

Parameters

  • $view string
  • $data array
public

render ( ) : string

Get the view / view contents that represent the component.

public

data ( ) : array

Get the data that should be supplied to the view.