Skip to content

marshmallow-packages/nova-placeholder-field

Repository files navigation

alt text

Nova Placeholder field

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.

Version Issues Code Coverage Licence

Installation

You can install the package via composer:

composer require marshmallow/nova-placeholder

Usage

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,
    ]),

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.