Learn how to configure your Spark Paddle application.
App\Models\Team
model our billable model, we first need to adjust Spark’s service provider.
SparkServiceProvider
to reference the Team
model instead of the User
model:
Team
model to use the Spark\Billable
trait and implement a paddleEmail
method that returns the team owner’s unique email address to be displayed in the Paddle dashboard as the customer identifier:
config/spark.php
configuration file so that it defines a team
billable model: