Signature
The Signature module adds SignatureField, a file-backed SVG signature input.
Use it when a form needs to capture a handwritten signature and store it through the normal Qore file flow.
Install
composer require qore-next/signature
The package auto-discovers SignatureServiceProvider.
No migrations, config or routes are published by this module. Install it, enable it in the modules UI and register the frontend module before rendering the field.
Usage
use Qore\Next\Signature\Fields\SignatureField;
SignatureField::make();
SignatureField extends FileField and sets:
- max files:
1; - MIME types: SVG only;
- preview width:
160; - frontend component:
Signature.
Because it is file-backed, the model must support the normal Qore file flow used by FileField.
Register the frontend module in resources/js/app.tsx so the Signature field component is available:
import signatureModule from '../../vendor/qore-next/signature/resources/js'
<QoreAppProvider
app={{
// ...
modules: [signatureModule]
}}
/>
Configure
Enable the module in Qore's modules UI. The module loads translations and registers metadata only.