Skip to content

Commit

Permalink
Fix config example.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielCoulbourne authored Aug 15, 2017
1 parent adb429b commit 06fa7a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ If you do want to filter routes, we have provided two optional configuration set
#### Example `config/ziggy.php`
```php
<?php
[
return [
// 'whitelist' => ['home', 'api.*'],
'blacklist' => ['admin.*', 'vulnerabilities.*'],
]
];
```

As shown in the example above, Ziggy the use of asterisks as wildcards in filters. `home` will only match the route named `home` whereas `api.*` will match any route whose name begins with `api.`, such as `api.posts.index` and `api.users.show`.
Expand Down

0 comments on commit 06fa7a5

Please sign in to comment.