imokhles/signature-field-for-backpack

Easily add signature field to backpack admin panel.

1.0.1 2020-07-22 16:49 UTC

README

Latest Version on Packagist Total Downloads

This package provides a signature field type for the Backpack for Laravel administration panel. The signature field allows admins to let customers sign documents, in a prettier way. It uses Signature Pad Library.

Screenshot

https://user-images.githubusercontent.com/1032474/86575263-a77d9b00-bf7f-11ea-8116-536f9c81ec53.gif

Installation

Via Composer

composer require imokhles/signature-field-for-backpack

Usage

Inside your custom CrudController:

$this->crud->addField([
    'name' => 'signature',
    'label' => 'Please sign here',
    'type' => 'signature',
    'view_namespace' => 'signature-field-for-backpack::fields',
]);

Notice the view_namespace attribute - make sure that is exactly as above, to tell Backpack to load the field from this addon package, instead of assuming it's inside the Backpack\CRUD package.

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email the author instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.