Skip to content

Commit

Permalink
Merge pull request #14 from dotkernel/alexmerlin-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
alexmerlin authored Aug 22, 2023
2 parents e88d92c + ad29611 commit dc23d78
Showing 1 changed file with 7 additions and 8 deletions.
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

0 comments on commit dc23d78

Please sign in to comment.