add CRM module start

This commit is contained in:
root
2026-01-15 07:09:36 +03:00
parent b14f293a45
commit b810a17649
40 changed files with 3807 additions and 14 deletions
+2
View File
@@ -21,6 +21,7 @@ class OrganizationUserModel extends Model
'invite_token',
'invited_by',
'invited_at',
'invite_expires_at',
'joined_at',
];
@@ -44,6 +45,7 @@ class OrganizationUserModel extends Model
{
return $this->where('invite_token', $token)
->where('status', self::STATUS_PENDING)
->where('invite_expires_at >', date('Y-m-d H:i:s'))
->first();
}