You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,23 @@ Example filters
104
104
105
105
This feature uses [fnmatch](http://php.net/manual/en/function.fnmatch.php) syntax to filter displayed commands. `stats:*` will match all Artisan commands that start with `stats:` while `email:daily-reports` will only match the command named `email:daily-reports`.
106
106
107
+
This filter can be used as either a whitelist or a blacklist. By default it acts as a whitelist but an option flag can be set to instead act as a blacklist.
108
+
109
+
```php
110
+
'artisan' => [
111
+
'command_filter' => [
112
+
'stats:*',
113
+
'email:daily-reports'
114
+
],
115
+
'whitelist' => true,
116
+
],
117
+
118
+
```
119
+
120
+
If the value of whitelist is `false` then the filter acts as a blacklist.
121
+
122
+
`'whitelist' => false`
123
+
107
124
#### Middleware
108
125
109
126
`Laravel Totem` uses the default web and api middleware but if customization is required the middleware can be changed by setting the appropriate `.env` value. These values can be found in `config/totem.php`.
0 commit comments