-
Hi I get the sign-pad (the drawing is a litlle off compared to the mouse pointer, but it works), I do a signature and hit submit. then I get an error: Route [] not defined. however the url in the address bar looks like this: Did I miss something in the installation ? kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It looks like your Laravel installation is not loading routes from the package. Have you tried cleaning the routes cache? Another option is that you didn't define the redirect route name. Can you check both? Not part of this problem, but you can define @if (!$myModel->hasBeenSigned())
<form action="{{ $myModel->getSignatureRoute() }}" method="POST">
@csrf
<div style="text-align: center">
<x-creagia-signature-pad />
</div>
</form>
<script src="{{ asset('vendor/sign-pad/sign-pad.min.js') }}"></script>
@endif |
Beta Was this translation helpful? Give feedback.
It looks like your Laravel installation is not loading routes from the package. Have you tried cleaning the routes cache? Another option is that you didn't define the redirect route name. Can you check both?
Not part of this problem, but you can define
method='post'
in the form to avoid passing the parameters on the URL: