token = $token; } /** * Get the notification's delivery channels. * * @return array */ public function via( object $notifiable ): array { return [ 'mail' ]; } /** * Get the mail representation of the notification. */ public function toMail( object $notifiable ): MailMessage { return ( new MailMessage ) ->subject( '台灣人工智慧學校 密碼重設通知' ) // ← 主旨寫在這裡 ->line( '以下是台灣人工智慧學校學員專區的密碼重設連結,若您沒有送出重設密碼的請求,請忽略此信件' ) ->action( '前往學員專區重設連結', url( '/' ) . "/reset-password/{$this->token}?email={$notifiable->email}&school_no={$notifiable->school_no}" ) ->line( '台灣人工智慧學校' ); } /** * Get the array representation of the notification. * * @return array */ public function toArray( object $notifiable ): array { return [ // ]; } }