Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Reset Password via email


When trying to reset the password
after submitting new passwords
it throws in laravel

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

public function handle(Request $request, Closure $next): Response

{

$is_logged_in = $request->path() != '/logout';



if(!session('last_active')) {

$this->session->put('last_active', time());

} elseif(time() - $this->session->get('last_active') > $this->timeout) {



$this->session->forget('last_active');



$cookie = cookie('intend', $is_logged_in ? url()->current() : 'dashboard');



auth()->logout();

}



$is_logged_in ? $this->session->put('last_active', time()) : $this->session->forget('last_active');



return $next($request);

}


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


We apologize for the delay. Thank you. We will investigate the issue and provide you with a workaround. The fix will be included in the upcoming updates. Thank you for your patience.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(