feat: revenue cat
CI / 🧪 Tests Laravel (push) Successful in 2m24s
CI / 🐳 Build & Push Image (push) Successful in 1m13s

This commit is contained in:
2026-08-12 16:00:11 +02:00
parent 31633cfd2c
commit 29e85589b0
55 changed files with 703 additions and 2363 deletions
-3
View File
@@ -78,8 +78,6 @@ class CreateUser extends Command
return self::FAILURE;
}
$trialDays = max(0, (int) config('billing.trial_days', 7));
$user = User::query()->create([
'name' => $name,
'email' => $email,
@@ -87,7 +85,6 @@ class CreateUser extends Command
'locale' => $locale,
'password' => Hash::make($password),
'role' => UserRole::from($role),
'trial_ends_at' => $trialDays > 0 ? now()->addDays($trialDays) : null,
]);
$this->components->info("User {$user->email} created with ID {$user->getKey()} and role {$user->role->value}.");