Я получил ошибку в ссылке сброса пароля "Объект не найден по этому URL при нажатии на ссылку сброса в gmail- http://localhost/password/reset/8fa85663874bce909623d285a255b976730d9ac509867c55fd820f78b176bfd5"
ResetPasswordController.php
protected function redirectTo()
{
if (auth()->user()->is_admin == 1) {
return 'admin/home';
} elseif (auth()->user()->is_admin == 2) {
return 'designpages/index';
} else {
return 'designpages/index';
}
}
public function __construct()
{
$this->middleware('guest');
}
view.php
<form method="POST" action="/password/reset" class="account_form">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
<div class="field-form">
<input id="email" type="email" class="field-text{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email"
value="{{ old('email') }}" placeholder="E-Mail Address" required autofocus>
@if ($errors->has('email'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
<div class="field-form">
<input id="password" type="password" class="field-text{{ $errors->has('password') ? ' is-invalid' : '' }}"
name="password" placeholder="Password" required>
@if ($errors->has('password'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
<div class="field-form">
<input id="password-confirm" type="password" class="field-text" name="password_confirmation"
placeholder="Confirm Password" required>
</div>
<div class="field-form field-submit">
<button type="submit" class="awe-btn awe-btn-13">
{{ __('Reset Password') }}
</button>
</div>
</form>