public function sendEmail($subject, $view, $vars = [])
    {
        $vars['email'] = $email = $this->email;
        $vars['username'] = $username = $this->username;

        Mail::queue(['text' => $view], $vars, function ($message) use ($email, $username, $subject) {
            $message->subject($subject)->to($email, $username);

            if (config()->has('mail.reply_to')) {
                $message->replyTo(
                    config('mail.reply_to.email'),
                    config('mail.reply_to.name')
                );
            }
        });
    }
public function sendEmail($subject, $view, $vars = [])
    {
        $vars['email'] = $email = $this->email;
        $vars['username'] = $username = $this->username;

        Mail::queue(['text' => $view], $vars, function ($message) use ($email, $username, $subject) {
            $message->subject($subject)->to($email, $username);

            if (config()->has('mail.reply_to')) {
                $message->replyTo(
                    config('mail.reply_to.email'),
                    config('mail.reply_to.name')
                );
            }
        });
    }
public function sendEmail ( $ subject , $ view , $ vars = [ ] ) { $ vars [ 'email' ] = $ email = $ this -> email ; $ vars [ 'username' ] = $ username = $ this -> username ; Mail :: queue ( [ 'text' => $ view ] , $ vars , function ( $ message ) use ( $ email , $ username , $ subject ) { $ message -> subject ( $ subject ) -> to ( $ email , $ username ) ; if ( config ( ) -> has ( 'mail.reply_to' ) ) { $ message -> replyTo ( config ( 'mail.reply_to.email' ) , config ( 'mail.reply_to.name' ) ) ; } } ) ; }
Shortcut method for sending a user an email.

@param string $subject
@param string $view
@param array  $vars
Shortcut method for sending a user an email .