#tarachand_369

1 messages · Page 1 of 1 (latest)

tawny lightBOT
noble zenith
#

Hello, can you explain more about what you are trying to code? What part of the subscription are you adding 40 days to?

elder folio
#

if(auth()->user()->subscriptions->count() == 0 && auth()->user()->setting->subscription_end_at > now()) {
$diff_days = now()->diff(auth()->user()->created_at)->days;
$expiry_date = $expiry_date->addDays(15 - $diff_days);
} User have free trial for 15 days but remaining days 10 , then user take subscription 1 month . I want pass 10 days + 1 months = 40 days

noble zenith
#

As in a 40 day trial?

elder folio
#

no sir 1 months subscription plan + remming end of free trial

#

total days 40

noble zenith
#

So you want the first cycle to only be 10 days, and then cycle every month?

#

Or do you want the first cycle to be 40 days and then cycle every month?

elder folio
#

yes