Skip to content

Commit 06fa7a5

Browse files
Fix config example.
1 parent adb429b commit 06fa7a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ If you do want to filter routes, we have provided two optional configuration set
7676
#### Example `config/ziggy.php`
7777
```php
7878
<?php
79-
[
79+
return [
8080
// 'whitelist' => ['home', 'api.*'],
8181
'blacklist' => ['admin.*', 'vulnerabilities.*'],
82-
]
82+
];
8383
```
8484

8585
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`.

0 commit comments

Comments
 (0)