Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to save image after editing from canvas to database in livewire? #764

Open
Frman-Husein opened this issue Mar 27, 2024 · 3 comments
Open
Labels

Comments

@Frman-Husein
Copy link

how to save image after editing from canvas to database in livewire?

@UziTech
Copy link
Collaborator

UziTech commented Mar 28, 2024

not sure what livewire is but you should look at the docs at https://github.com/szimek/signature_pad#handling-data-uri-encoded-images-on-the-server-side

@Frman-Husein
Copy link
Author

Frman-Husein commented Mar 28, 2024 via email

@liamja
Copy link

liamja commented Jun 3, 2024

Hey @Frman-Husein

I found this great example of how to do achieve this with Alpine and Livewire:

https://gist.github.com/jonneroelofs/a4a372fe4b55c5f9c0679d432f2c0231

Basically, you can wrap signature_pad in an alpine.js instance, then you can wire:model the state of the canvas with Livewire.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants