. */ namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use App\Account; class NewsletterRegistration extends Mailable { use Queueable, SerializesModels; private $account; public function __construct(Account $account) { $this->account = $account; } public function build() { return $this->view('mails.newsletter_registration') ->text('mails.newsletter_registration_text') ->with(['account' => $this->account]); } }