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