Skip to content

Commit f256600

Browse files
committed
feat: update billing middleware
1 parent 1508ca3 commit f256600

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/docs/utils/billing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,9 @@ Leaf billing comes with a middleware that you can use to protect your routes bas
560560
| Middleware | Description |
561561
| --- | --- |
562562
| `billing.subscribed` | Protect a route to only allow subscribed users |
563-
| `billing.unsubscribed` | Protect a route to only allow unsubscribed users |
564563
| `billing.subscribed:plan-name` | Protect a route to only allow users subscribed to a specific plan |
565-
| `billing.unsubscribed:plan-name` | Protect a route to only allow users not subscribed to a specific plan |
564+
| `billing.not-subscribed` | Protect a route to only allow users who aren't subscribed |
565+
| `billing.not-subscribed:plan-name` | Protect a route to only allow users not subscribed to a specific plan |
566566
| `billing.trial` | Protect a route to only allow users on a trial period |
567567
| `billing.not-trial` | Protect a route to only allow users not on a trial period |
568568

@@ -577,7 +577,7 @@ app()->get('/protected', [
577577
]);
578578

579579
app()->get('/protected', [
580-
'middleware' => 'billing.unsubscribed',
580+
'middleware' => 'billing.not-subscribed',
581581
'SubscriptionController@subscribe'
582582
]);
583583
```

0 commit comments

Comments
 (0)