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
22 changes: 22 additions & 0 deletions laravel/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<?php
// config/api-platform.php
return [
// ....
'swagger_ui' => [
// ....
'apiKeys' => [
'api' => [
'name' => 'Authorization',
'type' => 'header',
],
],
],
];
```

<img width="898" height="722" alt="Swagger UI Authorize button" src="https://github.com/user-attachments/assets/a8ac68ec-e02c-4c49-a2b0-c8dd633ad707" />
Loading