Skip to content

Route [] not defined. #19

Closed Answered by dtorras
rabol asked this question in Q&A
Jan 31, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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:

@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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rabol
Comment options

Answer selected by dtorras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants