File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
579579app()->get('/protected', [
580- 'middleware' => 'billing.unsubscribed ',
580+ 'middleware' => 'billing.not-subscribed ',
581581 'SubscriptionController@subscribe'
582582]);
583583```
You can’t perform that action at this time.
0 commit comments