完善首页邮箱找回密码流程

This commit is contained in:
2026-04-19 16:10:41 +08:00
parent 900c93c6c7
commit d4a9389fbc
11 changed files with 1011 additions and 3 deletions
+9
View File
@@ -12,6 +12,7 @@
namespace App\Models;
use App\Notifications\ResetUserPasswordNotification;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
@@ -168,6 +169,14 @@ class User extends Authenticatable
}
}
/**
* 发送邮箱找回密码通知。
*/
public function sendPasswordResetNotification(#[\SensitiveParameter] $token): void
{
$this->notify(new ResetUserPasswordNotification($token));
}
/**
* 关联:用户所属的 VIP 会员等级
*/