public function mailPassword($to, $subject, $data)
    {
        $this->mail->send('blogify::mails.password', ['data' => $data], function($message) use ($to, $subject)
        {
            $message->to($to)->subject($subject);
        });
    }
public function mailPassword($to, $subject, $data)
    {
        $this->mail->send('blogify::mails.password', ['data' => $data], function($message) use ($to, $subject)
        {
            $message->to($to)->subject($subject);
        });
    }
public function mailPassword ( $ to , $ subject , $ data ) { $ this -> mail -> send ( 'blogify::mails.password' , [ 'data' => $ data ] , function ( $ message ) use ( $ to , $ subject ) { $ message -> to ( $ to ) -> subject ( $ subject ) ; } ) ; }
Mail the generated password
to the newly created user

@param $to
@param $subject
@param $data
Mail the generated password to the newly created user