user_id = $user_id; $this->user_kodcaw = $user_kodcaw; $this->user_name = $user_name; $this->description = $description; $this->date_time = $date_time; } /** * Execute the job. * * @return void */ public function handle() { $content_collection = collect(); $content_collection['user_id'] = $this->user_id; $content_collection['user_kodcaw'] = $this->user_kodcaw; $content_collection['user_name'] = $this->user_name; $content_collection['description'] = $this->description; $content_collection['download_time'] = $this->date_time; $admin_emails = explode(',', config('app.admin_email')); foreach ($admin_emails as $email) { Mail::to($email)->send(new NotifyAdmin($content_collection)); } } }