report = $report; } /** * Execute the job. * * @return void */ public function handle() { $addresses = config('instance.reports.email.to'); if(config('instance.reports.email.enabled') == false || empty($addresses) || !config('instance.reports.email.autospam')) { return; } if(strpos($addresses, ',')) { $to = explode(',', $addresses); } else { $to = $addresses; } Mail::to($to)->send(new AdminNewAutospam($this->report)); } }