removed old subscription backend

This commit is contained in:
Čarodej
2021-11-19 16:18:27 +01:00
parent 34eaf3e411
commit f402141bfb
50 changed files with 13 additions and 2287 deletions

View File

@@ -21,9 +21,6 @@ class UserResource extends JsonResource
'type' => 'user',
'attributes' => [
'storage_capacity' => $this->settings->storage_capacity,
//'subscription' => $this->subscribed('main'),
//'incomplete_payment' => $this->hasIncompletePayment('main') ? route('cashier.payment', $this->subscription('main')->latestPayment()->id) : null,
'stripe_customer' => is_null($this->stripe_id) ? false : true,
'email' => is_demo() ? obfuscate_email($this->email) : $this->email,
'role' => $this->role,
'two_factor_authentication' => $this->two_factor_secret ? true : false,