W3cubDocs

/Laravel 5.8

View

interface View implements Renderable (View source)

Methods

string render()

Get the evaluated contents of the object.

from Renderable
string name()

Get the name of the view.

$this with(string|array $key, mixed $value = null)

Add a piece of data to the view.

array getData()

Get the array of view data.

Details

string render()

Get the evaluated contents of the object.

Return Value

string

string name()

Get the name of the view.

Return Value

string

$this with(string|array $key, mixed $value = null)

Add a piece of data to the view.

Parameters

string|array $key
mixed $value

Return Value

$this

array getData()

Get the array of view data.

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Contracts/View/View.html