Skip to main content

Signature

This plugin adds a SignatureDrawing field, which lets users draw their signature in a field.

Package used: https://github.com/WangShayne/vue-signature

Installation

To install this module

composer require qore/signature
php artisan vendor:publish --tag=qore.signature.frontend
cd frontend && yarn add vue-signature

Usage

To use this plugin

A signature is just an image, which means your model needs to implement HasMedia and use InteractsWithMedia:

class Ticket extends Model implements HasMedia
{
use InteractsWithMedia;
}

Once your model is ready, you can add the following field:

DrawnSignature::make('Signature', 'signature')
//->rules('required')

Upgrade Guide

To upgrade this plugin

composer update qore/signature

If you need to upgrade Vue components:

php artisan vendor:publish --tag=qore.signature.frontend --force