public function resendVerificationEmail(Request $request)
    {
        $user = Auth::user();

        $this->validate($request, [
            'email' => 'required|email|max:255|unique:users,email,' . $user->id
        ]);
        $user->email = $request->email;
        $user->save();

        $sent = resolve('Lunaweb\EmailVerification\EmailVerification')->sendVerifyLink($user);
        Session::flash($sent == EmailVerification::VERIFY_LINK_SENT ? 'success' : 'error', trans($sent));

        return redirect($this->redirectPath());
    }
public function resendVerificationEmail(Request $request)
    {
        $user = Auth::user();

        $this->validate($request, [
            'email' => 'required|email|max:255|unique:users,email,' . $user->id
        ]);
        $user->email = $request->email;
        $user->save();

        $sent = resolve('Lunaweb\EmailVerification\EmailVerification')->sendVerifyLink($user);
        Session::flash($sent == EmailVerification::VERIFY_LINK_SENT ? 'success' : 'error', trans($sent));

        return redirect($this->redirectPath());
    }
public function resendVerificationEmail ( Request $ request ) { $ user = Auth :: user ( ) ; $ this -> validate ( $ request , [ 'email' => 'required|email|max:255|unique:users,email,' . $ user -> id ] ) ; $ user -> email = $ request -> email ; $ user -> save ( ) ; $ sent = resolve ( 'Lunaweb\EmailVerification\EmailVerification' ) -> sendVerifyLink ( $ user ) ; Session :: flash ( $ sent == EmailVerification :: VERIFY_LINK_SENT ? 'success' : 'error' , trans ( $ sent ) ) ; return redirect ( $ this -> redirectPath ( ) ) ; }
Resend the verification mail

@param Request $request
@return \Illuminate\Http\RedirectResponse
Resend the verification mail