saade / filament-autograph

A Filament package to collect signatures.
https://filamentphp.com/plugins/saade-autograph
MIT License
47 stars 9 forks source link

[Bug]: Not writing to database #3

Closed noahlocke closed 1 year ago

noahlocke commented 1 year ago

What happened?

Maybe I'm missing something, but is the intention that the signature will persist in the database? Not seeing this behavior. If I draw a signature and save the form, nothing is written and the signature is lost if I refresh the page...

How to reproduce the bug

Install filament-autograph, add SignaturePad::make('signature') to resource form, draw signature & save resource.

Package Version

3.0

PHP Version

8.2

Laravel Version

10.0

Which operating systems does with happen with?

No response

Notes

No response

saade commented 1 year ago

the base64 of the signature should being saved into your database

noahlocke commented 1 year ago

Got it, fixed on my end! Thank you for clarifying!

abhi051002 commented 9 months ago

@noahlocke are you able to store the signature to your database if yes please tell me how to do it??

noahlocke commented 9 months ago

@abhi051002 it was a stupid mistake on my end, forgot to add 'signature' to the the $fillable array on the User.php model:

    protected $fillable = [
        'name',
        'email',
        'password',
        'signature'
    ];