Skip to content
Open
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
19 changes: 19 additions & 0 deletions laravel/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,22 @@
],
];
```

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

Check failure on line 106 in laravel/security.md

View workflow job for this annotation

GitHub Actions / Lint

Fenced code blocks should be surrounded by blank lines

laravel/security.md:106 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```php"] https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md031.md
<?php
// config/api-platform.php
return [
// ....
'swagger_ui' => [
// ....
'apiKeys' => [
'api' => [
'name' => 'Authorization',
'type' => 'header',
],
],
]
];
```

Check failure on line 121 in laravel/security.md

View workflow job for this annotation

GitHub Actions / Lint

Fenced code blocks should be surrounded by blank lines

laravel/security.md:121 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.39.0/doc/md031.md
<img width="898" height="722" alt="image" src="https://github.com/user-attachments/assets/a8ac68ec-e02c-4c49-a2b0-c8dd633ad707" />
Loading