- email template

This commit is contained in:
Peter Papp
2021-03-23 06:47:28 +01:00
parent 021e78e0c5
commit 0d4b8403ba
3 changed files with 34 additions and 19 deletions

View File

@@ -17,7 +17,9 @@ class PlanResource extends JsonResource
public function toArray($request)
{
// Get subscribers
$subscriber_count = Subscription::where('stripe_plan', $this['plan']['id'])->where('stripe_status', 'active')->get();
$subscriber_count = Subscription::where('stripe_plan', $this['plan']['id'])
->where('stripe_status', 'active')
->get();
return [
'data' => [