laravel 5.2에서 비밀번호 재설정을 완료하려고합니다. 모든 것이 마지막 부분까지 작동합니다.Laravel 비밀번호 재설정 경로를 찾을 수 없음
내 이메일 주소를 입력하고 새 암호 내가 219 오류를 RouteCollection.php 라인
MethodNotAllowedHttpException가 나타납니다 여기에
내 경로입니다
Route::get('/password/reset/email', 'Auth\[email protected]');
Route::post('/password/reset/email', 'Auth\[email protected]');
Route::get('/password/email', 'Auth\[email protected]');
Route::get('/password/reset/{token}', 'Auth\[email protected]');
Route::post('/password/reset', 'Auth\[email protected]');
그리고 이것은 내 컨트롤러 보이는 방법입니다.
<?php
namespace App\Http\Controllers\Auth;
use View;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
class PasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling password reset requests
| and uses a simple trait to include this behavior. You're free to
| explore this trait and override any methods you wish to tweak.
|
*/
use ResetsPasswords;
/**
* Create a new password controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
public function getSendResetLinkEmailSuccessResponse()
{
return View::make('auth.passwordSent');
}
protected $redirectPath = '/';
}
다음은 양식입니다 :
<form action="" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">
<label for="login-form-email">E-mail</label>
<input type="email" name="email" id="email" class="form-control" tabindex="1" placeholder="Email" value="{{ old('email') }}">
</div>
<div class="form-group">
<label for="login-form-password">New password</label>
<input type="password" class="form-control" name="password" id="login-form-password" tabindex="2" placeholder="Password" tabindex="4">
</div><!-- /.form-group -->
<div class="form-group">
<label for="login-form-password-retype">Confirm new password</label>
<input type="password" class="form-control" name="password_confirmation" id="login-form-password-retype" tabindex="3" placeholder="Confirm password">
</div><!-- /.form-group -->
<div class="form-group">
<input type="submit" class="btn btn-primary pull-right" name="reset-confirm" id="reset-confirm" tabindex="4" value="Reset Password">
</div>
</form>
하지 내가이 오류를 받고 있어요 내가 그 해결책을 찾을 수없는 이유를 확인합니다. 너희들이
어느 라인이 219입니까? – jszobody
전송되는 URL은 무엇입니까? – aynber
양식이 POST 대신 GET을 통해 제출할 수 있습니까? – jszobody