Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created June 27, 2021 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/8c6665eb2f409e3f639703992d17d467 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/8c6665eb2f409e3f639703992d17d467 to your computer and use it in GitHub Desktop.
<?php
Route::group(["middleware" => "subscribed"], function () {
Route::get('/billing-portal', function (Request $request) {
return auth()->user()->redirectToBillingPortal(route('dashboard'));
})->name("billing-portal");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment