Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

The GET method is not supported for route reset-password. Supported methods: POST.


I've installed the latest version of Metronic with Laravel. How do I solve this error?
I've followed the installation steps and haven't made any to the code.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (7)


Hi,

The error message you are seeing indicates that the HTTP GET method is being used for the "reset-password" route, but this route only supports the HTTP POST method.

To resolve this issue, you will need to ensure that any requests made to the "reset-password" route use the HTTP POST method. This could involve updating the code that is making the request to use POST instead of GET, or updating the server-side code that handles the "reset-password" route to support GET requests.

It would be helpful to know more about how you encountered this error. For example, were you trying to reset a password using a form or an API endpoint? Knowing more about the specific circumstances of the error could help to provide more targeted guidance on how to resolve it.

Thanks



Rob Hoffmann explained exactly the error. The code has not been modified, I downloaded and installed your template without any modification. I guess this error is global since it is a bug in your template...



Hi, I just managed to reproduce this error: on a clean install of the 8.1.8 Laravel demo1 starterkit (PHP 8.1.17
Laravel 10.3.3), I clicked the 'Forgot Password' link on the Login page. In the 'Forgot Password' page, I entered my own (non-registered) email address. After submit, the modal dialog shows 'We have send a password reset link to your email.'. After clicking 'Ok' in the dialog, Laravel shows the error 'The GET method is not supported for route reset-password. Supported methods: POST.' .



Hi,

We apologize for any inconvenience caused. To temporarily resolve the issue, could you please edit the following file:


/starterkit/resources/views/pages/auth/forgot-password.blade.php


Then replace the existing form tag with the following code:


<form class="form w-100" novalidate="novalidate" data-kt-redirect-url="{{ route("login") }}" method="POST" action="{{ route("password.request") }}">


Our team is currently working on a permanent fix for this issue and we will release it as soon as possible.


Thanks



I replaced the string, but clicking the submit button does nothing. It's not a problem, I will wait for it to be resolved. In the meantime, I will hide the function.

Thanks!



Great, we appreciate your patience. Rest assured that we will address the issue in the next update. In the meantime, if you have any other concerns or questions, please feel free to let us know. Thank you for your understanding.

Thanks



How long it takes to resolve the error?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(