added it_get_non_existed_user_subscription, it_get_user_invoices_from_admin test

This commit is contained in:
Peter Papp
2021-03-04 17:02:48 +01:00
parent b544aa875f
commit 350b3cb6b3
3 changed files with 42 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ class InvoiceResource extends JsonResource
*/
public function toArray($request)
{
$user = User::where('stripe_id', $this->customer)
$user = User::whereStripeId($this->customer)
->first();
return [