{"repo":"creagia/laravel-sign-pad","free":true,"listed":false,"github":"https://github.com/creagia/laravel-sign-pad","clone":"git clone https://github.com/creagia/laravel-sign-pad.git","description":"A Laravel package to sign documents and optionally generate certified PDFs associated with Eloquent models.","language":"PHP","stars":547,"topics":["laravel","pdf","signature","signature-pad"],"license":"MIT","category":"media-processing","readme_excerpt":"Laravel pad signature A Laravel package to sign documents and optionally generate certified PDFs associated to a Eloquent model. Requirements Laravel pad signature requires PHP 8.2 - 8.5 and Laravel 11 - 13 . Installation You can install the package via composer: Publish the config and the migration files and migrate the database Publish the .js assets: This will copy the package assets inside the public/vendor/sign-pad/ folder. Configuration In the published config file config/sign-pad.php you'll be able to configure many important aspects of the package, like the route name where users will be redirected after signing the document or where do you want to store the signed documents. You can customize the disk and route to store signatures and documents. Notice that the redirect route name will receive the parameter $uuid with the uuid of the signature model in the database. Preparing your model Add the RequiresSignature trait and implement the CanBeSigned class to the model you would like. If you want to generate PDF documents with the signature, you should implement the ShouldGenerateSignatureDocument class . Define your document template with the getSignatureDocumentTemplate method. A $model object will be automatically injected into the Blade template, so you will be able to access all the needed properties of the model. Usage At this point, all you need is to create the form with the sign pad canvas in your template. For the route of the form, you have to call the method","default_branch":null,"files":null,"tree":[],"storefront":"/r/creagia","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/creagia/laravel-sign-pad/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}