commit
9a4371a2eb
2 changed files with 15 additions and 2 deletions
|
|
@ -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 ");
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue