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

bwrigley's avatar

Laravel Cashier createAsStripeCustomer() needs argument

Following the docs here:

https://laravel.com/docs/5.7/billing#create-customers

(sadly anchor is broken so you will need to scroll to 'Creating Customers')

it says to register a user as a stripe customer you can run:

$user->createAsStripeCustomer();

However this dies with:

Too few arguments to function App\User::createAsStripeCustomer(), 0 passed

Seems it expects at array as an argument. Am I missing something or do the docs need updating?

0 likes
3 replies
bwrigley's avatar

Sorry I missed that! Still on 8.*

Thanks!

1 like

Please or to participate in this conversation.