contact = $contact; } /** * Execute the job. * * @return void */ public function handle() { $contact = $this->contact; $email = config('instance.email'); if(config('instance.contact.enabled') == false || $contact->read_at !== null || filter_var($email, FILTER_VALIDATE_EMAIL) == false) { return; } Mail::to($email)->send(new ContactAdmin($contact)); } }