Add a Signature Pad field to Nova.
You can install the package via composer:
composer require appstract/nova-signature-field
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()
Contributions are welcome, thanks to y'all :)
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.
The MIT License (MIT). Please see License File for more information.