Solved. My IDE imported the Laravel\Cashier\Billable trait rather than the Spark\Billable on my team model.
May 7, 2022
4
Level 14
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?
Level 14
Please or to participate in this conversation.