Here is what I have done once user register,
$user->createAsStripeCustomer();
$user->newSubscription('main', $data['plan'])
->trialDays(21)
->create();
as it eventually, returns user subscribed true, and it will keep after trail period too, so I mean how I'll handle this situation after trail got ended? thanks any help would be really appreciated.!!
After the trial ends user will be on the grace period, and we can check easily if user trial is ended.
$user->subscription('main')->onTrial()