Files
Global-Jain/app/Notifications/Auth/ResetPassword.php
2025-11-05 10:37:10 +05:30

32 lines
851 B
PHP

<?php
namespace App\Notifications\Auth;
use Illuminate\Bus\Queueable;
use Illuminate\Auth\Notifications\ResetPassword as ResetPasswordNotifications;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Contracts\Queue\ShouldQueue;
class ResetPassword extends ResetPasswordNotifications implements ShouldQueue
{
use Queueable;
/**
* Get the reset URL for the given notifiable.
*
* @param mixed $notifiable
* @return string
*/
protected function resetUrl($notifiable)
{
if (static::$createUrlCallback) {
return call_user_func(static::$createUrlCallback, $notifiable, $this->token);
}
return url(route('admin.password.reset', [
'token' => $this->token,
'email' => $notifiable->getEmailForPasswordReset(),
], false));
}
}