I solved this by using
$request->input('stripeToken')
instead of
$request->only('stripeToken')
only() returns an array. The errors that I was seeing were not helpful at all, but var_dumping what I was passing to create() helped me figure that out. It would be great if Cashier did some validation on the data you send it though.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community