I think you need to either refer to the spark user or Auth::user().
Call to undefined method Illuminate\Database\Query\Builder::user()
In the trait Laravel\Spark\Http\Controllers\Settings\Billing\SendsInvoiceNotifications is a method buildInvoiceMessage that calls $billable->user()->localInvoices() but the method user() doesn't exists causing this error: Call to undefined method Illuminate\Database\Query\Builder::user()
In my case $billable is an instance of the team model. It has a localInvoices method so $billable->localInvoices() should work instead of $billable->user()->localInvoices()
The original url called is /webhook/stripe with an invoice.payment_succeeded event.
I'm using a fresh install of spark 3.0.4
Is this a bug in spark, or did I configure something wrong?
ahh, a pull request was submitted 13 days ago that fixed this issue
Please or to participate in this conversation.