Build a Monthly Subscription App with Laravel Cashier


Resubscribing a user that has cancelled is easy.


We can also do checks to see if a user is on a plan or wants to resume and switch to another plan:

$plan = 'silver';

if ($user->onPlan($plan)) {
    // resume the plan
} else {
    // resume and switch plan

Like this article? Follow @chrisoncode on Twitter