Closed Frman-Husein closed 4 months ago
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
It is mean i using in laravel, in. Canvas i see image but how save this image in database
On Thu, Mar 28, 2024, 5:27 AM Tony Brix @.***> wrote:
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
— Reply to this email directly, view it on GitHub https://github.com/szimek/signature_pad/issues/764#issuecomment-2024287169, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMOQYHKMTTOKPQOSAD2UTTY2N5XTAVCNFSM6AAAAABFL2EUDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGI4DOMJWHE . You are receiving this because you authored the thread.Message ID: @.***>
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.
how to save image after editing from canvas to database in livewire?