관리-도구
편집 파일: UserForgetPassword.php
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Mail\Mailables\Content; use Illuminate\Mail\Mailables\Envelope; use Illuminate\Queue\SerializesModels; class UserForgetPassword extends Mailable { use Queueable, SerializesModels; public $mail_subject; public $mail_message; public $from_user; public $mail_template_path; public function __construct($mail_message, $mail_subject, $from_user, $mail_template_path) { $this->mail_subject = $mail_subject; $this->mail_message = $mail_message; $this->from_user = $from_user; $this->mail_template_path = $mail_template_path; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: $this->mail_subject, ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: $this->mail_template_path.'.forget_password_mail', ); } /** * Get the attachments for the message. * * @return array<int, \Illuminate\Mail\Mailables\Attachment> */ public function attachments(): array { return []; } }