如何向注册用户显示‘个人’和‘团队’计划?我的应用程序需要1 x付费团队计划,2 x付费个人计划。
在我的SparkServiceProvider中,如果我注释掉个人计划,团队计划将显示在注册表单上,并输入用户的团队名称。但是,如果我在服务提供商中包含个人计划,则团队计划将被隐藏。
public function booted()
{
Spark::useStripe();
// Spark::chargePerTeam();
Spark::billsTeams();
Spark::details([
'some' => 'information'
]);
Cashier::useCurrency('gbp', '£');
Spark::useRoles([
'member' => 'Member',
'vip' => 'VIP',
]);
Spark::teamPlan('Institution', 'institution-plan')
->price(350)
->yearly()
->maxTeams(1)
->maxTeamMembers(4)
->features([
'Full access to member forums',
'Up to 4 profile pages for your team users',
'All team members have the same access'
]);
Spark::plan('Independent', 'plan_FFQgFP56Vtj3vt')
->price(75)
->yearly()
->maxTeams(0)
->features([
'Full access to member forums',
'Profile page',
]);
Spark::plan('Affiliated', 'independent-plan')
->price(125)
->yearly()
->maxTeams(0)
->features([
'Full access to member forums',
'Profile page',
'For employed individuals whose organisation pays the fee'
]);
}发布于 2019-06-20 22:21:28
我得到了穆罕默德的回复,他这样评价拉威尔:
“我们不支持开箱即用,如果有用户计划,那么这些计划就会出现在注册中,因为注册的人是”用户“。”
因此,我将尝试推出我自己的注册组件,如果选择了团队计划,则有条件地显示团队名称字段。我会报告我的调查结果。
https://stackoverflow.com/questions/56628569
复制相似问题