//Route as follows:
Route::get('forgotPassword', array('as' => 'forgotPassword', 'uses' => 'RemindersController@getRemind'));
Route::post('postRemind', array('as' => 'postReminder', 'uses' => 'RemindersController@postRemind'));
Route::get('reset/{token}', array('as' => 'getReset', 'uses' => 'RemindersController@getReset'));
Route::post('reset', 'RemindersController@postReset');
//reminder.blade.php
{{ URL::route('getReset', Session::get('_token')) }}
//remindersController
public function getReset($token = null)
{
if (is_null($token)) App::abort(404);
return View::make('frontend.users.password.reset')->with('token', $token);
}
It did send me the email and the url is like this:
http://localhost/html5lav/public/user/reset/2LEYtzhB0QXfHJH3eC4hj2UH6VLXJsc3iawk6iAv
Howerver, i cannot open it . it shows:
Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException
i wonder why did this happen? Thanks
The following problem is solved . but now the problem is that And once submiting the final reset page ,it show :laravel the password reset token is invalid. the url is like: localhost/html5lav/public/user/reset/, Thanks