subject = $subject; $this->content = $content; $this->files = $files; } public function build() { $message = $this->view('emails.content')->with([ 'content' => $this->content, 'greetings' => __('Best regards'), ]); foreach ($this->files as $file) { $message->attach($file->getPath(),[ 'as' => $file->original_name, 'mime' => $file->mine, ]); // attach each file //$message->attach((string) $file->getPath()); // attach each file } return $message; } }