在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):daem0ndev/laravel-spark开源软件地址(OpenSource Url):https://github.com/daem0ndev/laravel-spark开源编程语言(OpenSource Language):PHP 76.9%开源软件介绍(OpenSource Introduction):Spark
IntroductionThis is an alpha, experimental release of Spark. Things will change. Things will break. Thank you for testing! Spark is an experimental project primarily intended for building business oriented SaaS applications, and is highly opinionated towards that use case. InstallationFirst, install the Spark installer and make sure that the global Composer
Next, create a new Laravel application and install Spark:
After installing Spark, be sure to migrate your database, install the NPM dependencies, and run the You may also wish to review the Defining Subscription PlansSubscription plans may be defined in your When defining a Spark plan, the Spark::plan('Display Name', 'stripe-id')
->price(10)
->features([
//
]); Yearly PlansTo define a yearly plan, simply call the Spark::plan('Basic', 'basic-yearly')
->price(100)
->yearly()
->features(
//
); CouponsTo use a coupon, simply create the coupon on Stripe and access the
Site-wide promotions may be run using the Spark::promotion('coupon-code'); TeamsTo enable teams, simply use the class User extends Model implements TwoFactorAuthenticatableContract,
BillableContract,
CanResetPasswordContract
{
use Billable, CanJoinTeams, CanResetPassword, TwoFactorAuthenticatable;
} Once teams are enabled, a team name will be required during registration, and a RolesTeam roles may be defined in the Customizing Spark ViewsYou may publish Spark's common Blade views by using the
All published views will be placed in If you would like to publish every Spark view, you may use the
Customizing Spark JavaScriptThe You are free to change any of these require statements to load your own Vue component for a given screen. Most likely, you will want to copy the original component as a starting point for your customization. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论