src/Http/Controllers/ForgotPasswordController.php
public function sendResetLinkEmail()
    {
        validator(request()->all(), [
            'email' => 'required|email',
        ])->validate();

        if ($author = WinkAuthor::whereEmail(request('email'))->first()) {
            cache(['password.reset.'.$author->id => $token = Str::random()],
                now()->addMinutes(30)
            );

            Mail::to($author->email)->send(new ResetPasswordEmail(
                encrypt($author->id.'|'.$token)
            ));
        }

        return redirect()->route('wink.password.forgot')->with('sent', true);
    }
public function sendResetLinkEmail()
    {
        validator(request()->all(), [
            'email' => 'required|email',
        ])->validate();

        if ($author = WinkAuthor::whereEmail(request('email'))->first()) {
            cache(['password.reset.'.$author->id => $token = Str::random()],
                now()->addMinutes(30)
            );

            Mail::to($author->email)->send(new ResetPasswordEmail(
                encrypt($author->id.'|'.$token)
            ));
        }

        return redirect()->route('wink.password.forgot')->with('sent', true);
    }
public function sendResetLinkEmail ( ) { validator ( request ( ) -> all ( ) , [ 'email' => 'required|email' , ] ) -> validate ( ) ; if ( $ author = WinkAuthor :: whereEmail ( request ( 'email' ) ) -> first ( ) ) { cache ( [ 'password.reset.' . $ author -> id => $ token = Str :: random ( ) ] , now ( ) -> addMinutes ( 30 ) ) ; Mail :: to ( $ author -> email ) -> send ( new ResetPasswordEmail ( encrypt ( $ author -> id . '|' . $ token ) ) ) ; } return redirect ( ) -> route ( 'wink.password.forgot' ) -> with ( 'sent' , true ) ; }
Send password reset email.

@return \Illuminate\Http\Response
Send password reset email .