middleware('guest'); } public function showLinkRequestForm() { return view('auth.passwords.email'); } public function broker() { return Password::broker('users'); } public function sendResetLinkEmail(Request $request){ $request->validate([ 'email'=>'required|email|exists:users' ]); $applicant= User::where('email', $request->email)->first(); if (empty($applicant)) { return back()->with('error','Unknown Email address!'); } if($applicant->email_verification == 0){ return back()->with('error', 'Your e-mail is not verified!. Please check your email'); }else{ \Mail::to( $request->email )->send( new \App\Mail\ApplicantPasswordResetLink($applicant) ); return back()->with('success', 'Your password reset link sent to registered emails inbox.'); } } }