the browser-facing portion of osu!
at master 892 B 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 UserPasswordUpdated extends Mailable implements ShouldQueue 14{ 15 use Queueable, SerializesModels; 16 17 public $user; 18 19 /** 20 * Create a new message instance. 21 * 22 * @return void 23 */ 24 public function __construct($user) 25 { 26 $this->user = $user; 27 } 28 29 /** 30 * Build the message. 31 * 32 * @return $this 33 */ 34 public function build() 35 { 36 return $this 37 ->text('emails.user_password_updated') 38 ->subject(osu_trans('mail.user_password_updated.subject')); 39 } 40}