the browser-facing portion of osu!
at master 44 lines 1.0 kB view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6namespace App\Mail; 7 8use Illuminate\Bus\Queueable; 9use Illuminate\Contracts\Queue\ShouldQueue; 10use Illuminate\Mail\Mailable; 11use Illuminate\Queue\SerializesModels; 12 13class ForumNewReply extends Mailable implements ShouldQueue 14{ 15 use Queueable, SerializesModels; 16 17 public $topic; 18 public $user; 19 20 /** 21 * Create a new message instance. 22 * 23 * @return void 24 */ 25 public function __construct($attributes) 26 { 27 $this->topic = $attributes['topic']; 28 $this->user = $attributes['user']; 29 } 30 31 /** 32 * Build the message. 33 * 34 * @return $this 35 */ 36 public function build() 37 { 38 return $this 39 ->text('emails.forum.new_reply') 40 ->subject(osu_trans('mail.forum_new_reply.subject', [ 41 'title' => $this->topic->topic_title, 42 ])); 43 } 44}