W3cubDocs

/Laravel 5.4

ManagesEvents

trait ManagesEvents (View source)

Methods

array creator(array|string $views, Closure|string $callback)

Register a view creator event.

array composers(array $composers)

Register multiple view composers via an array.

array composer(array|string $views, Closure|string $callback)

Register a view composer event.

void callComposer(View $view)

Call the composer for a given view.

void callCreator(View $view)

Call the creator for a given view.

Details

array creator(array|string $views, Closure|string $callback)

Register a view creator event.

Parameters

array|string $views
Closure|string $callback

Return Value

array

array composers(array $composers)

Register multiple view composers via an array.

Parameters

array $composers

Return Value

array

array composer(array|string $views, Closure|string $callback)

Register a view composer event.

Parameters

array|string $views
Closure|string $callback

Return Value

array

void callComposer(View $view)

Call the composer for a given view.

Parameters

View $view

Return Value

void

void callCreator(View $view)

Call the creator for a given view.

Parameters

View $view

Return Value

void

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