Merge pull request #5258 from turbo124/v5-develop

Subscriptions
This commit is contained in:
David Bomba 2021-03-26 20:20:55 +11:00 committed by GitHub
commit 9a4371a2eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -52,8 +52,7 @@ class PostUpdate extends Command
nlog("finished migrating");
exec('vendor/bin/composer install --no-dev');
exec('vendor/bin/composer dump');
exec('vendor/bin/composer install --no-dev -o');
nlog("finished running composer install ");

View File

@ -263,5 +263,19 @@ class SubscriptionService
//scan for any notification we are required to send
}
public function products()
{
return Product::whereIn('id', explode(",", $this->subscription->product_ids))->get();
}
public function recurring_products()
{
return Product::whereIn('id', explode(",", $this->subscription->recurring_product_ids))->get();
}
public function price()
{
return 1;
}
}