src/Controllers/PasswordController.php
public function sendToEmail(Request $request, UserMailer $userMailer)
    {
        $this->validate($request, [
            'email' => 'required|email'
        ]);
        $request = $request->only('email');
        $request['token'] = str_random(40);
        $this->resetPasswordRepo->create($request);
        $userMailer->sendResetPasswordEmailTo($request);
        return redirect()->route('core::home');
    }
public function sendToEmail(Request $request, UserMailer $userMailer)
    {
        $this->validate($request, [
            'email' => 'required|email'
        ]);
        $request = $request->only('email');
        $request['token'] = str_random(40);
        $this->resetPasswordRepo->create($request);
        $userMailer->sendResetPasswordEmailTo($request);
        return redirect()->route('core::home');
    }
public function sendToEmail ( Request $ request , UserMailer $ userMailer ) { $ this -> validate ( $ request , [ 'email' => 'required|email' ] ) ; $ request = $ request -> only ( 'email' ) ; $ request [ 'token' ] = str_random ( 40 ) ; $ this -> resetPasswordRepo -> create ( $ request ) ; $ userMailer -> sendResetPasswordEmailTo ( $ request ) ; return redirect ( ) -> route ( 'core::home' ) ; }
send a message to the email of the user

@return Reponse
send a message to the email of the user