laravel / cashier-stripe

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.
https://laravel.com/docs/billing
MIT License
2.39k stars 679 forks source link

Calling invoices() method returns an empty object #1023

Closed jhayg12 closed 4 years ago

jhayg12 commented 4 years ago

Description:

Hi there, I'm trying to retrieve the invoices for a particular user using the invoices() method as per the documentation but it returns an empty object.

$user = Auth::user();
$user->invoices();

The response looks like this: [ {} ]

Steps To Reproduce:

  1. Install laravel cashier package.
  2. Create subscription for a user.
  3. Retrieve invoices
driesvints commented 4 years ago

I doubt this is broken or we'd be flooded with support issues. Please try a support channel first:

Thanks!