marshmallow/nova-placeholder

A placeholder field to just so some content on forms without any logic.

v1.1.0 2024-08-17 18:39 UTC

This package is auto-updated.

Last update: 2024-12-17 19:35:09 UTC


README

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 stef@marshmallow.dev instead of using the issue tracker.

Credits

License

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