🚦
Routes
Cashierstream applies automatically the routes needed for your users to interact with their plans, invoices, and payment methods.
You can find a list with the applied routes file in routes/inertia.php.
1
<a href="{{ route('billing-portal.dashboard') }}">
2
To the billing dashboard
3
</a>
Copied!
Additionally, you may call the route:list command in your application:
1
$ php artisan route:list --compact | grep billing
2
​
3
| GET|HEAD | billing | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
4
| GET|HEAD | billing/invoice | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
5
| GET|HEAD | billing/payment-method | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
6
| POST | billing/payment-method | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
7
| GET|HEAD | billing/payment-method/create | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
8
| GET|HEAD | billing/payment-method/{payment_method} | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
9
| DELETE | billing/payment-method/{payment_method} | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
10
| POST | billing/payment-method/{payment_method}/set-default | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
11
| GET|HEAD | billing/portal | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
12
| GET|HEAD | billing/subscription | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
13
| POST | billing/subscription/cancel | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
14
| POST | billing/subscription/resume | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
15
| POST | billing/subscription/subscribe/{plan} | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
16
| POST | billing/subscription/swap/{plan} | RenokiCo\BillingPortal\Http\Controllers\Inertia\[email protected] |
Copied!
All route names are prefixed with billing-portal. and you may change the prefix and middleware via config/billing-portal.php:
1
php artisan vendor:publish --provider="RenokiCo\BillingPortal\BillingPortalServiceProvider" --tag="config"
Copied!
Copy link
Edit on GitHub