client = $client; } /** * Execute the job. * * @return void */ public function handle(Mailer $mailer) { $client = $this->client; $emails = ['samuel@click-mobile.com', 'kwesi@click-mobile.com']; $data = [ 'client' => $client->name, 'created_by' => $client->auth_user_info->name, 'country' => $client->country, 'company_type' => $client->company_type, 'contact_person' => $client->contact_person, 'how_we_got' => $client->how_we_got_client ]; $mailer->send('emails.onboarding_completed', $data, function ($message) use ($data, $emails) { $message->from('support@click-mobile.com', 'Click Mobile ERP'); $message->to($emails)->subject('Onboarding Completed'); }); } }