marshmallow/nova-placeholder

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

Maintainers

Package info

github.com/marshmallow-packages/nova-placeholder-field

Language:Vue

pkg:composer/marshmallow/nova-placeholder

Statistics

Installs: 1 528

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-06-11 15:53:12 UTC


README

alt text

Nova Placeholder field

Latest Version on Packagist Total Downloads Issues License

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

This package adds a Placeholder field which you can use in Laravel Nova. It only outputs some HTML in the forms of your resource. This is not a field to store any data — it just displays some stuff.

Nova Placeholder field example

Installation

Install the package via Composer:

composer require marshmallow/nova-placeholder

The service provider is auto-discovered, so there is nothing else to register.

Usage

Add the field to a Nova resource and pass the HTML you want to output to the content() method. That's it!

use Marshmallow\Placeholder\Placeholder;

Placeholder::make(__('Planning'))
    ->content('This 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.'),

You can also render a Blade view instead of an inline string with the view() method. The first argument is the view name and the second is the data passed to it:

use Marshmallow\Placeholder\Placeholder;

Placeholder::make(__('Planning'))
    ->view('components.planning', [
        'lead' => $lead,
    ]),

The field never writes to the underlying model, so it is safe to use on create and update forms purely for display.

Changelog

Please see CHANGELOG for more information on 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 the License File for more information.