Jan 27, 2020
0
Level 1
Why are methods not found in Authenticatable? Using Laravel 6 Cashier 10 with Stripe API
Hi Laravel Developers,
Why are methods not found in Authenticatable? Im using Laravel 6 Cashier 10 with Stripe API. Please see the following errors in my Subscription Controller.
Method 'createSetupIntent' not found in \Illuminate\Contracts\Auth\Authenticatable|null
Method 'addPaymentMethod' not found in \Illuminate\Contracts\Auth\Authenticatable|null
Unhandled \Stripe\Exception\ApiErrorException
The above errors show in up in PHP storm. When the code is actually ran in the browser, I get this error:
This customer has no attached payment source or default payment method.
This makes sense considering PHP Storm cant find my methods. What do you guys think?
Please or to participate in this conversation.