ManagesEvents (View\Concerns)

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部