saade / filament-autograph Goto Github PK
View Code? Open in Web Editor NEWA Filament package to collect signatures.
Home Page: https://filamentphp.com/plugins/saade-autograph
License: MIT License
A Filament package to collect signatures.
Home Page: https://filamentphp.com/plugins/saade-autograph
License: MIT License
Is their any way to save the signature in to database
I'm trying every possible way i know to save the signature
2.0.0
8.2.0
10.0.0
Linux
No response
It doesn't work in a relationship manager form.
create a relation manager and add SignaturePad to form
3.0.0
8.2.11
10.26.2
Windows, Linux
No response
When using the autograph field inside a table repeater, the lines you draw, get an offset to the right (so the line you draw, is not exactly where you draw it)
In this video, I have 2 autograph fields. 1 in a normal form, below that, inside a repeater. You can spot the differences here.
3.0
8.2
10.0
macOS, Windows, Linux
No response
I'm trying to load an image from the database and update $this->data, but nothing is happening.
The field is mounted with some image with $this->form->fill()
Then a button trigger a method to load different values in the fields, updating $this->data. It works fine for all the fields (Toggle) except SignaturePad.
3.0.2
8.2
10.43.0
macOS
public function selectExistingSignature($autographId)
{
$autograph = Autograph::find($autographId);
if ($autograph) {
$this->data['autograph'] = $autograph->image;
}
}
I would like to return the signature data drawn. However, afterStateUpdated is not working. Is there some way that I can make this?
Method afterStateUpdated is not working.
^3.0
8.2.0
10.0.0
Windows
No response
If I save a signature in dark mode and then change to light mode, the signature is barely visible because it is displayed with the color used in dark mode.
Save signature in dark mode and change to ligt mode to edit or show.
3.0.0
8.2.11
10.26.2
Windows, Linux
No response
Added a table action which opens a form in a modal containing signature pad component
Tables\Actions\Action::make('sign') ->form([ SignaturePad::make('signature'), ]) ->action(function (array $data, User $record): void { dd($data, $record); $record->save(); }),
3.0.0
8.2.0
10
Linux
Only tried on linux but i guess should happen other systems too.
Hello,
The composer require saade/filament-autograph
command fails with Laravel 11:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires saade/filament-autograph ^3.0 -> satisfiable by saade/filament-autograph[v3.0.0, v3.0.1, v3.0.2].
- saade/filament-autograph[v3.0.0, ..., v3.0.2] require illuminate/contracts ^10.0 -> found illuminate/contracts[v10.0.0, ..., v10.48.4] but these were not loaded, likely because it conflicts with another require.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
As far I as I can tell, this is because the package requires only the version 10 for illuminate/contracts
.
In the composer.json
file, I suppose the illuminate/contracts ^10.0
(line 26) sould be changed to illuminate/contracts ^10.0|^11.0
.
I would love to make a PR to propose this change but I am not enough experienced with Git/GitHub to do it...
@saade, could you please have a look?
Try to install on a fresh Laravel 11 / Filament 3 project.
3.0
8.3
11.1
macOS
No response
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...
Install filament-autograph
, add SignaturePad::make('signature')
to resource form, draw signature & save resource.
3.0
8.2
10.0
No response
No response
When i draw something and save as file directly, everything works ok, but when you save it in the database and open the record again, it shows correctly, but when you save it as file there is no line anymore. In my case i used it for a signature, but the signature is not visible anymore
3.0.0
8.2.8
10.19.0
Windows
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.