Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bearbytestudio's avatar

Issue setting up Laravel Spark with Team model as billable

Hi all,

I'm trying to set up Spark on a new application where the Team model will be the billable model using Stripe.

I've followed every single step here: https://spark.laravel.com/docs/2.x/spark-stripe/cookbook.html

Whenever I visit the /billing page, I get this error:

Call to undefined method App\Models\Team::sparkConfiguration()

Any ideas?

0 likes
4 replies
bearbytestudio's avatar
bearbytestudio
OP
Best Answer
Level 14

Solved. My IDE imported the Laravel\Cashier\Billable trait rather than the Spark\Billable on my team model.

ericsts's avatar

Hi !! I am having the same problem, even using Spark\Billable any idea?

stephenbickle's avatar

@ericsts Did you ever figure this one out? Its a year later, I've done the exact steps, still getting the same error.

tarecord's avatar

@stephenbickle You'll also need to update the model defined in your config/spark.php file:

'billables' => [
        'user' => [
            'model' => Team::class,
            ...
       ]
]
1 like

Please or to participate in this conversation.