medias = $medias; $this->yesterday = $yesterday; $this->sujets = $sujets; } /** * Build the message. * * @return $this */ public function build() { $now = Carbon::now(); $medias = $this->medias; $yesterday = $this->yesterday; $sujets = $this->sujets; return $this->subject("Rapport d'activité DAM - " . $now->formatLocalized('%d %B %Y à %H:%M'))->view('mails.send-media-report', compact('medias','yesterday','sujets')); } }