A Laravel Nova field for rendering custom html on index, detail, and forms.
joshmoreno/nova-html-field is a Laravel package for a laravel nova field for rendering custom html on index, detail, and forms..
It currently has 13 GitHub stars and 101.561 downloads on Packagist (latest version v0.1.0).
Install it with composer require joshmoreno/nova-html-field.
Discover more Laravel packages by joshmoreno
or browse all Laravel packages to compare alternatives.
Last updated

A nova field for rendering html on all resource pages: index, detail, and forms. This is hopefully a temporary solution until nova supports computed fields on forms.
composer require joshmoreno/nova-html-field
\JoshMoreno\Html\Html::make('Some Title')
->html('<h1>Example</h1>'),
\JoshMoreno\Html\Html::make('Some Title')
->html(function() {
return "<h1>$this->name</h1>";
}),
\JoshMoreno\Html\Html::make('Some Title')
->view('fields.example'),
<div class="px-8 py-6 border-b border-40">
<h1 class="mb-2">Custom Html</h1>
<p>This is all custom html!</p>
</div>
\JoshMoreno\Html\Html::make('Some Title')
->html(function() {
return view('fields.example')
->with('name', $this->name)
->render();
}),
<div class="px-8 py-6 border-b border-40">
<h1 class="mb-2">Hi {{$name}}</h1>
<p>This is all custom html with data!</p>
</div>