添加 判断实名路由
This commit is contained in:
parent
a1fa27b17a
commit
729dbdcfa8
@ -118,6 +118,11 @@ public function isAdult(): bool
|
|||||||
return $this->birthday_at->diffInYears(now()) >= 18;
|
return $this->birthday_at->diffInYears(now()) >= 18;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isRealNamed(): bool
|
||||||
|
{
|
||||||
|
return $this->real_name_verified_at !== null;
|
||||||
|
}
|
||||||
|
|
||||||
public function user_group(): BelongsTo
|
public function user_group(): BelongsTo
|
||||||
{
|
{
|
||||||
return $this->belongsTo(UserGroup::class);
|
return $this->belongsTo(UserGroup::class);
|
||||||
|
Loading…
Reference in New Issue
Block a user