Replies: 2 comments
-
LaravelSignPadController.php was looking for id in the post
Id is the Waiver model Id. For now replaced the $waiver = new Waiver(); just to test with $waiver = Waiver::findOrFail(1); and the signatures db table get populated. |
Beta Was this translation helpful? Give feedback.
-
@pauliest the way this package works, it can only be used with an already created model because the form uses the model id to attach the signature. So you are right and won't work if you create a Our need for this package was to sign already existing models, not to sign models at the moment of creating them. I'm afraid that you'd need to change your app flow to use this package. |
Beta Was this translation helpful? Give feedback.
-
probably missing an easy step, appreciate the advice
added model Waiver following the MyModel example
In controller, added
After signing and submitting, the form posts to
http://localhost/creagia/sign-pad?model=App\Models\Waiver&token=1449914ae0e86eb8005c52733b29d280
The view has
Since I did not configure - redirected after signing the document - the signature box clears.
The signatures database table remains empty. Thinking its something easy, any ideas?
Beta Was this translation helpful? Give feedback.
All reactions