#tarachand_369
1 messages · Page 1 of 1 (latest)
Hello, can you explain more about what you are trying to code? What part of the subscription are you adding 40 days to?
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
As in a 40 day trial?
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?
yes