appointment = $appointment; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: 'Booking confirmation', ); } /** * Get the message content definition. */ public function content(): Content { $student = Student::findOrFail($this->appointment->student_id); return new Content( view: 'emails.appointment-confirmation', with: [ 'student' => $student, ] ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }