diff --git a/laravel/security.md b/laravel/security.md index 388252420fb..daba85ada79 100644 --- a/laravel/security.md +++ b/laravel/security.md @@ -101,3 +101,25 @@ 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', + ], + ], + ], +]; +``` + +Swagger UI Authorize button