diff --git a/laravel/security.md b/laravel/security.md index 388252420fb..a29cae1734d 100644 --- a/laravel/security.md +++ b/laravel/security.md @@ -101,3 +101,22 @@ return [ ], ]; ``` + +If you plan to use Swagger UI to test your API through the browser, also uncomment the `swagger_ui.apiKeys` config to display the Authorization form in Swagger UI: +```php + [ + // .... + 'apiKeys' => [ + 'api' => [ + 'name' => 'Authorization', + 'type' => 'header', + ], + ], + ] +]; +``` +image