Build a Monthly Subscription App with Laravel Cashier

Update Card

Updating a card in Cashier is easy business. We need Stripe to create the token and append that to our form. Once Laravel has the token, we can do the following:

// get the user
$user = $request->user();

// grab the token
$token = $request->input('token');

// update the card

You can see the updated card_last_four in the users table. You can also see the updated card on a customer page in Stripe.