diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index f9be9e2..a18edb1 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -13,4 +13,4 @@ jobs: uses: dotkernel/documentation-theme/github-actions/docs@main env: DEPLOY_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 4359a76..03043f7 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,12 @@ Next, register the package's `ConfigProvider` to your application config. 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);` +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); -Create a new file ``response-header.global.php`` in ``config/autoload`` with the below configuration array : +Create a new file `response-header.global.php` in `config/autoload` with the below configuration array : true``. +To overwrite an existing header use `overwrite => true`. diff --git a/docs/book/v3/installation.md b/docs/book/v3/installation.md index 3bded62..7cdd8e0 100644 --- a/docs/book/v3/installation.md +++ b/docs/book/v3/installation.md @@ -2,4 +2,4 @@ Install dotkernel/dot-response-header by executing the following Composer command in your project directory: - $ composer require dotkernel/dot-response-header + composer require dotkernel/dot-response-header diff --git a/mkdocs.yml b/mkdocs.yml index 5d20a0d..d9f0fae 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -10,8 +10,8 @@ nav: - v3: - Overview: v3/overview.md - Installation: v3/installation.md - - Usage: v3/usage.md - Configuration: v3/configuration.md + - Usage: v3/usage.md site_name: dot-response-header site_description: "DotKernel's middleware for setting and overwriting custom response headers." repo_url: "https://github.com/dotkernel/dot-response-header"