当前位置: 首页>>代码示例>>PHP>>正文


PHP Spark::free方法代码示例

本文整理汇总了PHP中Laravel\Spark\Spark::free方法的典型用法代码示例。如果您正苦于以下问题:PHP Spark::free方法的具体用法?PHP Spark::free怎么用?PHP Spark::free使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Laravel\Spark\Spark的用法示例。


在下文中一共展示了Spark::free方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: customizeSubscriptionPlans

 /**
  * Customize the subscription plans for the application.
  *
  * @return void
  */
 protected function customizeSubscriptionPlans()
 {
     Spark::free()->features(['Feature 1', 'Feature 2', 'Feature 3']);
     Spark::plan('Basic', 'test-1')->price(9.99)->trialDays(7)->features(['Feature 1', 'Feature 2', 'Feature 3']);
 }
开发者ID:rrrhys,项目名称:spark-inventory,代码行数:10,代码来源:SparkServiceProvider.php

示例2: customizeSubscriptionPlans

 /**
  * Customize the subscription plans for the application.
  *
  * @return void
  */
 protected function customizeSubscriptionPlans()
 {
     Spark::free()->features(['Just 1 reminder a month', 'Absolutely FREE']);
     Spark::plan('Basic', '100')->price(1)->trialDays(7)->features(['Up to 10 reminders a month', 'Cancel at any time', 'First week FREE']);
     Spark::plan('Gold', 'gold')->price(10)->trialDays(7)->features(['Up to 1000 reminders a month', 'Cancel at any time', 'First week FREE']);
 }
开发者ID:stevencook,项目名称:text-reminders,代码行数:11,代码来源:SparkServiceProvider.php

示例3: customizeSubscriptionPlans

 /**
  * Customize the subscription plans for the application.
  *
  * @return void
  */
 protected function customizeSubscriptionPlans()
 {
     Spark::promotion('50-percent-off-membership');
     Spark::free()->features(['Learn to code on your own time!', 'New content offered weekly!', 'Learn best practices and current industry standards!']);
     Spark::plan('Premium - Monthly', 'jyrone-parker-blog-monthly')->price(9.99)->trialDays(7)->features(['Get access to wider array of tutorials!', 'Get added to my email list!', 'Get access to my virtual office hours!']);
     Spark::plan('Premium - Yearly', 'jyrone-parker-yearly')->price(99)->yearly()->trialDays(7)->features(['Save over 17% off regular membership!', 'Free T-Shirt!', '10% discount off everything in the store!']);
 }
开发者ID:mastashake08,项目名称:jyroneparker,代码行数:12,代码来源:SparkServiceProvider.php

示例4: customizeSubscriptionPlans

 /**
  * Customize the subscription plans for the application.
  *
  * @return void
  */
 protected function customizeSubscriptionPlans()
 {
     Spark::free()->features(['Feature 1', 'Feature 2', 'Feature 3']);
     Spark::plan('basic', '001')->price(5)->trialDays(7)->features(['Feature 1', 'Feature 2', 'Feature 3']);
     Spark::plan('home edition', '002')->price(10)->trialDays(7)->features(['Feature 1', 'Feature 2', 'Feature 3']);
     Spark::plan('profesional', '003')->price(20)->trialDays(7)->features(['Feature 1', 'Feature 2', 'Feature 3']);
 }
开发者ID:sergipineda,项目名称:Spark-,代码行数:12,代码来源:SparkServiceProvider.php

示例5: customizeSubscriptionPlans

 /**
  * Customize the subscription plans for the application.
  *
  * @return void
  */
 protected function customizeSubscriptionPlans()
 {
     Spark::free('Student')->features(['Feature 1', 'Feature 2', 'Feature 3']);
     Spark::plan('Teacher', 'stripe-id')->price(10)->trialDays(7)->features(['Feature 1', 'Feature 2', 'Feature 3']);
     Spark::plan('Organisation', 'stripe-id')->price(100)->trialDays(7)->features(['Feature 1', 'Feature 2', 'Feature 3']);
 }
开发者ID:jclyons52,项目名称:mycourse-rocks,代码行数:11,代码来源:SparkServiceProvider.php


注:本文中的Laravel\Spark\Spark::free方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。