This package adds a Placeholder field which you can use in Laravel Nova. This package only outputs some HTML in the forms of your resource. This is not a field to store any data, just to display some stuff.
You can install the package via composer:
composer require marshmallow/nova-placeholder
Just add the HTML you want to output in the resource to the content()
method. Thats it!
use Marshmallow\Placeholder\Placeholder;
Placeholder::make(__('Planning'))
->content('Deze lead is planned to be completed on august 1. This will be done by <strong>John Doe</strong>.<br/><a href="">Click here</a> to view the full construction planning.'),
Placeholder::make(__('Planning'))
->view('components.planning', [
'lead' => $lead,
]),
Please see CHANGELOG for more information what has changed recently.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.