Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lamarlaing's avatar

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?

0 likes
0 replies

Please or to participate in this conversation.