我有route
Route::get('passwords/reset/{token?}','Auth\ResetPasswordController@showResetForm');
ResetPasswordController
//Show form to seller where they can reset password
public function showResetForm(Request $request, $token = null)
{
return view('auth.passwords.reset')->with(
['token' => $token, 'email' => $request->email]
);
}
还有reset.blade.php
内的auth\passwords\
<form action="passwords/email"method = 'post'>
<h4 style = 'text-align:center'>Reset Your Password</h4>
<div class="form-group">
<input type="email" class="form-control" id="exampleInputPassword1" placeholder="Enter Your Email Here" style = 'text-align:center'>
</div>
<div>
<button type="submit" value="submit">Send Email To Reset Password
</button>
</div>
</form>
当我尝试访问domain-name/password/reset
时,它会给出
未找到[auth.passwords.reset]。
尽管我有reset.blade.php
之类的views/auth/passwords/reset.blade.php
它没有加载已经存在的view
,并且laravel
本身指定了找不到auth.passwords.reset
的路径。
答案 0 :(得分:1)
检查文件夹名称是否区分大小写
public function showResetForm(Request $request, $token = null)
{
// Here I have assumed your folders start with capital letters please put as per your structure
return view('Auth.Passwords.reset')->with(
['token' => $token, 'email' => $request->email]
);
}