Creating an interface for the user to manage subscriptions

Alright, the preceding recipe made it possible for people to subscribe, but what happens when they want to change the plan or cancel it!

I will cover making an area where they can update or swap out their plan. You can take this much further at the UI level. I am keeping it very simple.

Getting ready

See the preceding recipes, as you really need to have the cashier set up to get this far.

How to do it…

  1. I will make a controller to keep our logic in one controller:
    > php artisan make:controller SubscriptionSwapController
    
    How to do it…
  2. Then, I will make the route for this controller:
  3. Now, to add some logic to ...

Get Laravel 5.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.