TokenMismatchException in 3314

Good afternoon, there was an error when registering in laravel. The error occurred after submitting the form on the /register page. How can I fix this problem? TokenMismatchException in 3314

1 answer

  • answered 2020-11-25 07:25 Lawrence Njenga

    Anytime you define an HTML form in your application include a hidden CSRF token field in the form so that the CSRF protection middleware can validate the request.

    Either do ...

    <form method="POST" action="/profile">

    Or do ...

    <form method="POST" action="/profile">
        {{ csrf_field() }}