當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Spark::plan方法代碼示例

本文整理匯總了PHP中Laravel\Spark\Spark::plan方法的典型用法代碼示例。如果您正苦於以下問題:PHP Spark::plan方法的具體用法?PHP Spark::plan怎麽用?PHP Spark::plan使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Laravel\Spark\Spark的用法示例。


在下文中一共展示了Spark::plan方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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: booted

 /**
  * Finish configuring Spark for the application.
  *
  * @return void
  */
 public function booted()
 {
     Spark::useStripe()->noCardUpFront()->trialDays(10);
     Spark::freePlan()->features(['First', 'Second', 'Third']);
     Spark::plan('Basic', 'provider-id-1')->price(10)->features(['First', 'Second', 'Third']);
 }
開發者ID:peterfox,項目名稱:hexavel-spark,代碼行數:11,代碼來源:SparkServiceProvider.php

示例3: 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

示例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::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

示例6: 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 Plan', 'Basic')->price(5)->trialDays(7)->features(['Feature 1', 'Feature 2', 'Feature 3']);
     Spark::plan('Starter Plan', 'Starter')->price(10)->trialDays(7)->features(['Feature 1', 'Feature 2', 'Feature 3']);
     Spark::plan('Bussines Plan', 'Bussines')->price(15)->trialDays(7)->features(['Feature 1', 'Feature 2', 'Feature 3']);
     Spark::plan('Ultimate Plan', 'Ultimate')->price(20)->trialDays(7)->features(['Feature 1', 'Feature 2', 'Feature 3']);
 }
開發者ID:rogermelich,項目名稱:spark,代碼行數:18,代碼來源:SparkServiceProvider.php

示例7: 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::plan方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。