File manager - Edit - /var/www/payraty/helpdesk/vendor/livewire/livewire/src/Features/SupportPageComponents/HandlesPageComponents.php
Back
<?php namespace Livewire\Features\SupportPageComponents; trait HandlesPageComponents { function __invoke() { // Here's we're hooking into the "__invoke" method being called on a component. // This way, users can pass Livewire components into Routes as if they were // simple invokable controllers. Ex: Route::get('...', SomeLivewireComponent::class); $html = null; $layoutConfig = SupportPageComponents::interceptTheRenderOfTheComponentAndRetreiveTheLayoutConfiguration(function () use (&$html) { $params = SupportPageComponents::gatherMountMethodParamsFromRouteParameters($this); $html = app('livewire')->mount($this::class, $params); }); $layoutConfig = $layoutConfig ?: new PageComponentConfig; $layoutConfig->normalizeViewNameAndParamsForBladeComponents(); $response = response(SupportPageComponents::renderContentsIntoLayout($html, $layoutConfig)); if (is_callable($layoutConfig->response)) { call_user_func($layoutConfig->response, $response); } return $response; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings