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
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Upon installation, Laravel will automatically register the Service Provider bund
26
26
27
27
## Configuration
28
28
29
-
You can configure the message, the regular expression used to match URI patterns (e.g a list of file extensions), and optionally an exclusion regular expression.
29
+
You can configure the message, the regular expression used to match URI patterns (e.g. a list of file extensions), and optionally an exclusion regular expression.
30
30
31
31
### From configuration files
32
32
@@ -51,7 +51,7 @@ All configuration values **must** be strings.
51
51
|---|---|---|
52
52
|`message`|`Not Found`|The message to be shown when this package terminates a request. It might contain HTML. Try to keep the message short.|
53
53
|`regex`|[`/\.(?:js\|css\...woff2)$/i`](#file-type-extensions)|A full regular expression to match against the request URI (without base-URI and URL parameters). If matched, this package will attempt to terminate the request. The default value will be used if `null` is passed. Make sure to include expression delimiters and flags if necessary. It is recommended to keep the default value.|
54
-
|`exclude_regex`|``|An optional regular expression to match, and if matched, this package will **not** terminate the request even if the `exclude` expression matched positive. This can be used to declare exclusion patterns if your Laravel application generates images on-the-fly, provides dynamic `.js` files, etc.|
54
+
|`exclude_regex`|`null`|An optional regular expression to match, and if matched, this package will **not** terminate the request even if the `exclude` expression matched positive. This can be used to declare exclusion patterns if your Laravel application generates images on-the-fly, provides dynamic `.js` files, etc.|
55
55
56
56
### File type extensions
57
57
@@ -101,7 +101,7 @@ class Kernel extends HttpKernel
101
101
102
102
Make sure to add `\PHPWatch\LaravelFast404\Fast404Middleware::class,` to the top because middlewares are run in the order they are declared.
103
103
104
-
### Optional step 3: Register a service provider for further custimizations
104
+
### Optional step 3: Register a service provider for further customizations
105
105
106
106
If you would like to configure the middleware to change the message, file extensions, or the exclusion pattern, you will need to register it in the Service Container.
107
107
@@ -122,5 +122,5 @@ $this->app->bind(Fast404Middleware::class, static function ($app): Fast404Middle
122
122
123
123
## Contributions
124
124
125
-
Contributions are welcome! Please feel free to send a PR or open an issue. Please note that this Laravel pacakge is in the same line as [`phpwatch/fast404`](https://github.com/PHPWatch/fast404) and [`phpwatch/wordpress-fast404`](https://github.com/PHPWatch/WordPress-Fast404) packages, and the extensions list updates will be made to all packages in a framework-agnostic way.
125
+
Contributions are welcome! Please feel free to send a PR or open an issue. Please note that this Laravel package is in the same line as [`phpwatch/fast404`](https://github.com/PHPWatch/fast404) and [`phpwatch/wordpress-fast404`](https://github.com/PHPWatch/WordPress-Fast404) packages, and the extensions list updates will be made to all packages in a framework-agnostic way.
0 commit comments