File manager - Edit - /home/linknsbh/cecil-hotel.net/vendor/botble/platform/base/src/Forms/FieldOptions/HtmlFieldOption.php
Back
<?php namespace Botble\Base\Forms\FieldOptions; use Botble\Base\Forms\FormFieldOptions; use Closure; class HtmlFieldOption extends FormFieldOptions { protected string $html = ''; public function view(string $view, array $data = [], array $mergeData = []): static { return $this->content( view($view, $data, $mergeData)->render() ); } public function content(string|Closure $content): static { $this->html = value($content); return $this; } public function toArray(): array { return [ ...parent::toArray(), 'html' => $this->html, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.61 |
proxy
|
phpinfo
|
Settings