title: How to reset password manually via answering the security questions without sending email (Laravel/Vuejs)
body: <p>I am currently developing a simple Bookstore application with a few numbers of users on which sending emails are not needed because it will be implemented in the local system so is there any way to customize laravel-auth for password reset function by adding a few security questions fields where user can reset his/her password without sending reset links via email.</p>
  
  <p>Any kind of help will be highly appreciated.</p>
  
  <p>here I tried the below code but id did not work</p>
  
  <p>Code in web.php</p>
  
  <pre><code>Route::post('/main/checklogin', 'UserController@chekQuestions');
  </code></pre>
  
  <p>Code in userContoller</p>
  
  <pre><code> public function chekQuestions(Request $request)
      {
            $request-&gt;validate( [
           'email'    =&gt; 'required|string|email',
           'answerQuestionOne' =&gt; 'required|string|confirmed',
           'answerQuestionTwo'    =&gt; 'required|string'
        ] );
      $user = User::first();
  
          if($user-&gt;email == $request-&gt;email &amp;&amp; $user-&gt;answerQuestionOne == $request-&gt;answerQuestionOne &amp;&amp; $user-&gt;answerQuestionTwo == $request-&gt;answerQuestionTwo )
           {
              // $userEmail = DB::table( 'password_resets' )-&gt;where( 'token', $user-&gt;token );
              // return view('auth.password.reset',compact($userEmail));
              return view('auth.password.reset');
           }
  
             return response()-&gt;json( [
           'error'   =&gt; true,
           'message' =&gt; 'We cannot find a user with that Email Address'
        ], 404 );
      }
  </code></pre>
  
  <p>Code in reset password.blade</p>
  
  <pre><code>    &lt;div id="register" class="animate form registration_form"&gt;
        &lt;section class="login_content"&gt;
        &lt;form method="POST" action="{{ url('/main/checklogin') }}" &gt;
                      @csrf
            &lt;h3&gt;د پټ نو بیا راګرځولو لپاره لاندی امنتی پوښتنو ته ځواب ورکړی &lt;/h3&gt;
            &lt;div class="form-group has-feedback"&gt;
              &lt;input id="email" type="email" placeholder=" ایمل" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus&gt;
  
                              @error('email')
                                  &lt;span class="invalid-feedback" role="alert"&gt;
                                      &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                                  &lt;/span&gt;
                              @enderror
              &lt;div class="form-control-feedback"&gt;
                &lt;i class="fa fa-envelope-o text-muted"&gt;&lt;/i&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;div&gt;
             &lt;input id="answerQuestionOne" placeholder="لومړۍ امنیتي پوښتنه" type="text"   class="form-control @error('answerQuestionOne') is-invalid @enderror" name="answerQuestionOne" value="{{ old('answerQuestionOne') }}" required autocomplete="answerQuestionOne" autofocus&gt;
  
                              @error('answerQuestionOne')
                                  &lt;span class="invalid-feedback" role="alert"&gt;
                                      &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                                  &lt;/span&gt;
                              @enderror
          &lt;/div&gt;
          &lt;div&gt;
              &lt;input id="answerQuestionTwo" placeholder="دوهمه امنیتي پوښتنه " type="text" class="form-control @error('answerQuestionTwo') is-invalid @enderror" name="answerQuestionTwo" value="{{ old('answerQuestionTwo') }}" required autocomplete="answerQuestionTwo" autofocus&gt;
  
                              @error('answerQuestionTwo')
                                  &lt;span class="invalid-feedback" role="alert"&gt;
                                      &lt;strong&gt;{{ $message }}&lt;/strong&gt;
                                  &lt;/span&gt;
                              @enderror
          &lt;/div&gt;
  
            &lt;button type="submit" class="btn btn-default btn-block"&gt;خوندی کړی &lt;/button&gt;
  
  
  
            &lt;div class="clearfix"&gt;&lt;/div&gt;
             &lt;div class="separator"&gt;
              &lt;p class="change_link"&gt;
                &lt;a href="#signin" class="to_register"&gt;  تاسو دمخه غړی یاست ننوتل &lt;/a&gt;
              &lt;/p&gt;
  
              &lt;div class="clearfix"&gt;&lt;/div&gt;
              &lt;br /&gt;
          &lt;/form&gt;
        &lt;/section&gt;
      &lt;/div&gt;
  </code></pre>