首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何向注册用户显示‘个人’和‘团队’计划?

如何向注册用户显示‘个人’和‘团队’计划?
EN

Stack Overflow用户
提问于 2019-06-17 17:34:36
回答 1查看 66关注 0票数 1

如何向注册用户显示‘个人’和‘团队’计划?我的应用程序需要1 x付费团队计划,2 x付费个人计划。

在我的SparkServiceProvider中,如果我注释掉个人计划,团队计划将显示在注册表单上,并输入用户的团队名称。但是,如果我在服务提供商中包含个人计划,则团队计划将被隐藏。

代码语言:javascript
复制
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'
            ]);
    }
EN

回答 1

Stack Overflow用户

发布于 2019-06-20 22:21:28

我得到了穆罕默德的回复,他这样评价拉威尔:

“我们不支持开箱即用,如果有用户计划,那么这些计划就会出现在注册中,因为注册的人是”用户“。”

因此,我将尝试推出我自己的注册组件,如果选择了团队计划,则有条件地显示团队名称字段。我会报告我的调查结果。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56628569

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档