Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,21 @@ Middleware for setting and overwriting custom response headers.

Run the following command in your project root directory

```
$ composer require dotkernel/dot-response-header
```
composer require dotkernel/dot-response-header


Next, register the package's `ConfigProvider` to your application config.

``Dot\ResponseHeader\ConfigProvider::class,``
Dot\ResponseHeader\ConfigProvider::class,


Note : Make sure to register the package under the `// DK packages` section.

After registering the package, add it to the middleware stack in ``config/pipeline.php`` after `$app->pipe(RouteMiddleware::class);`

```
$app->pipe(RouteMiddleware::class);
$app->pipe(\Dot\ResponseHeader\Middleware\ResponseHeaderMiddleware::class);
```
$app->pipe(RouteMiddleware::class);
$app->pipe(\Dot\ResponseHeader\Middleware\ResponseHeaderMiddleware::class);


Create a new file ``response-header.global.php`` in ``config/autoload`` with the below configuration array :

Expand Down