Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Created May 5, 2026 23:58
Show Gist options
  • Select an option

  • Save codigoconjuan/e2b093158786e4c0c39b4bd3c5bedd71 to your computer and use it in GitHub Desktop.

Select an option

Save codigoconjuan/e2b093158786e4c0c39b4bd3c5bedd71 to your computer and use it in GitHub Desktop.
Base de Rutas para Suscripciones en CashTrackr
Route::get('/subscription', [SubscriptionController::class, 'show'])
->name('subscription.manage');
Route::post('/subscription/swap/{plan}', [SubscriptionController::class, 'swap'])
->name('subscription.swap')
->whereIn('plan', ['monthly', 'yearly']);
Route::post('/subscription/cancel', [SubscriptionController::class, 'cancel'])
->name('subscription.cancel');
Route::post('/subscription/resume', [SubscriptionController::class, 'resume'])
->name('subscription.resume');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment