appstract/nova-signature-field

A Laravel Nova field with Signature Pad

1.1.0 2020-04-27 14:32 UTC

This package is auto-updated.

Last update: 2024-11-28 01:02:05 UTC


README

Latest Version on Packagist Total Downloads Software License

Add a Signature Pad field to Nova.

Installation

You can install the package via composer:

composer require appstract/nova-signature-field

Usage

Just add the field to your resource.

use Appstract\NovaSignatureField\Signature;

public function fields(Request $request)
{
    return [
        Signature::make('Drawing')
    ];
}

It is also possible to pass some options to field:

// Edit in a modal, so the SignaturePad is bigger
Signature::make('Drawing')->editInModal()

// Full width image on detail, without label
Signature::make('Drawing')->fullWidthOnDetail()

Contributing

Contributions are welcome, thanks to y'all :)

About Appstract

Appstract is a small team from The Netherlands. We create (open source) tools for Web Developers and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.

License

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