. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class PasswordReset extends Mailable implements ShouldQueue { use Queueable, SerializesModels; public $user; public $key; /** * Create a new message instance. * * @return void */ public function __construct($attributes) { $this->user = $attributes['user']; $this->key = $attributes['key']; } /** * Build the message. * * @return $this */ public function build() { return $this ->text('emails.password_reset') ->subject(osu_trans('mail.password_reset.subject')); } }