feat: revenue cat
This commit is contained in:
@@ -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}.");
|
||||
|
||||
Reference in New Issue
Block a user