Your IP : 216.73.216.91


Current Path : /var/www/html/LLCF-APP/app/Notifications/
Upload File :
Current File : /var/www/html/LLCF-APP/app/Notifications/AdminResetPassword.php

<?php

namespace App\Notifications;

use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Auth\Notifications\ResetPassword;
use Illuminate\Notifications\Messages\MailMessage;

class AdminResetPassword extends ResetPassword
{
    use Queueable;

    /**
     * Create a new notification instance.
     */
    public function __construct(
        public $token,
        public User $user,
    ) {}

    /**
     * Get the mail representation of the notification.
     */
    public function toMail($notifiable)
    {
        $url = route('admin.reset.password', ['token' => $this->token]);

        return (new MailMessage)->subject('Reset Password Notification')
            ->view('mail.auth.admin.reset-password', [
                'url' => $url,
                'user' => $this->user,
            ]);
    }
}