add-filesystem-google-drive

This commit is contained in:
xiaomlove
2021-05-10 20:05:52 +08:00
parent 3edc75b844
commit 3e4471f533
14 changed files with 862 additions and 17 deletions

View File

@@ -6,7 +6,21 @@ class Invite extends NexusModel
{
protected $table = 'invites';
protected $fillable = [
'inviter', 'invitee', 'hash', 'time_invited',
const VALID_YES = 1;
const VALID_NO = 0;
public static $validInfo = [
self::VALID_NO => ['text' => 'No'],
self::VALID_YES => ['text' => 'Yes'],
];
protected $fillable = [
'inviter', 'invitee', 'hash', 'time_invited', 'valid', 'invitee_register_uid', 'invitee_register_email', 'invitee_register_username'
];
public function getValidTextAttribute()
{
return self::$validInfo[$this->valid]['text'] ?? '';
}
}