donated user ignore H&R

This commit is contained in:
xiaomlove
2022-03-28 19:52:10 +08:00
parent 30a50b5ede
commit cd7fe1704f
8 changed files with 39 additions and 21 deletions

View File

@@ -367,4 +367,12 @@ class User extends Authenticatable
return true;
}
public function isDonating()
{
if ($this->donoruntil && $this->donoruntil >= Carbon::now()->toDateTimeString()) {
return true;
}
return false;
}
}