4 months ago

Password reset issue

Posted 4 months ago by MattB

So, I have a password reset view which relies on a variable being passed into it. I tried to use the below Route but it meant that when I go to the "Login" link, the button for "Forgot Your Password" is missing:

Route::get('/password/reset', 'Auth\[email protected]')->name('reset');

When I remove that route, the button comes back but of course, the link complains about a missing variable.

The function in the controller is:

public function showResetForm()
        $categoryMenu = Categories::all();
        return view('auth.passwords.reset', compact('categoryMenu'));

Please sign in or create an account to participate in this conversation.