Path: blob/1.0-develop/app/Notifications/SendPasswordReset.php
7432 views
<?php12namespace Pterodactyl\Notifications;34use Illuminate\Bus\Queueable;5use Illuminate\Notifications\Notification;6use Illuminate\Contracts\Queue\ShouldQueue;7use Illuminate\Notifications\Messages\MailMessage;89class SendPasswordReset extends Notification implements ShouldQueue10{11use Queueable;1213/**14* Create a new notification instance.15*/16public function __construct(public string $token)17{18}1920/**21* Get the notification's delivery channels.22*/23public function via(): array24{25return ['mail'];26}2728/**29* Get the mail representation of the notification.30*/31public function toMail(mixed $notifiable): MailMessage32{33return (new MailMessage())34->subject('Reset Password')35->line('You are receiving this email because we received a password reset request for your account.')36->action('Reset Password', url('/auth/password/reset/' . $this->token . '?email=' . urlencode($notifiable->email)))37->line('If you did not request a password reset, no further action is required.');38}39}404142