Skip to content

Commit 3aec0d1

Browse files
committed
docs: update internal links to use relative paths
1 parent fb7e61b commit 3aec0d1

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

laravel/index.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ using Laravel!
77

88
With API Platform, you can:
99

10-
- [expose your Eloquent](laravel#exposing-a-model) models in minutes as:
10+
- [expose your Eloquent](./#exposing-a-model) models in minutes as:
1111
- a REST API implementing the industry-leading standards, formats and best practices: [JSON-LD](https://en.wikipedia.org/wiki/JSON-LD)/[RDF](https://en.wikipedia.org/wiki/Resource_Description_Framework), [JSON:API](https://jsonapi.org), [HAL](https://stateless.group/hal_specification.html), and many RFCs...
12-
- a [GraphQL](laravel#enabling-graphql) API
12+
- a [GraphQL](./#enabling-graphql) API
1313
- or both at the same time, with the same code!
1414
- automatically expose an [OpenAPI](https://www.openapis.org) specification (formerly Swagger), dynamically generated from your Eloquent models and always up to date
1515
- automatically expose nice UIs and playgrounds to develop using your API ([Swagger UI](https://swagger.io/tools/swagger-ui/) and [GraphiQL](https://github.com/graphql/graphiql))
1616
- automatically paginate your collections
17-
- add validation logic using Laravel [Form Request Validation](laravel#write-operations-authorization-and-validation)
18-
- add authorization logic using [gates and policies](laravel#authorization) ([compatible with Sanctum, Passport, Socialite...](laravel#authentication))
19-
- add [filtering logic](laravel#adding-filters)
17+
- add validation logic using Laravel [Form Request Validation](./#write-operations-authorization-and-validation)
18+
- add authorization logic using [gates and policies](./#authorization) ([compatible with Sanctum, Passport, Socialite...](./#authentication))
19+
- add [filtering logic](./#adding-filters)
2020
<!--* push changed data to the clients in real-time using Laravel Broadcast and [Mercure](https://mercure.rocks) (a popular WebSockets alternative, created by Kévin Dunglas, the original author of API Platform) and receive them using Laravel Echo-->
2121
- benefits from the API Platform JavaScript tools: [admin](../admin/index.md) and [create client](../create-client/index.md) (supports Next/React, Nuxt/Vue.js, Quasar, Vuetify and more!)
2222
<!-- * benefits from native HTTP cache (with automatic invalidation) -->
@@ -168,7 +168,7 @@ For instance, go to `http://127.0.0.1:8000/api/books.jsonld` to retrieve the lis
168168
> [!NOTE]
169169
> Documentation for Eloquent "API resources" encourages using the JSON:API community format.
170170
> While we recommend preferring JSON-LD when possible, JSON:API is also supported by API Platform,
171-
> read the [Content Negotiation](laravel#content-negotiation) section to learn how to enable it.
171+
> read the [Content Negotiation](./#content-negotiation) section to learn how to enable it.
172172
173173
Of course, you can also use your favorite HTTP client to query the API.
174174
We are fond of [Hoppscotch](https://hoppscotch.com), a free and open source API client with good support of API Platform.

laravel/security.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
API Platform is compatible with Laravel's [authorization](https://laravel.com/docs/authorization) mechanism.
66

77
To utilize policies in API Platform, it is essential to have Laravel's authentication system initialized.
8-
See the [Authentication section](laravel#authentication) for more information.
8+
See the [Authentication section](./#authentication) for more information.
99

1010
Once a gate is defined, API Platform will automatically detect your policy.
1111

laravel/testing.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ As a result, your test environment remains reliable and consistent across multip
220220
If everything is working properly, you should see `Tests: 5 passed (15 assertions)`.
221221
Your REST API is now properly tested!
222222

223-
Check out the [API Test Assertions section](laravel#api-test-assertions-with-laravel) to discover the full range of assertions
223+
Check out the [API Test Assertions section](./#api-test-assertions-with-laravel) to discover the full range of assertions
224224
and other features provided by API Platform's test utilities.
225225

226226
### Migrating from PHPUnit to Pest
@@ -244,7 +244,7 @@ If for some reason, PHPUnit is not installed refer to the [PHPUnit Installation
244244

245245
### Writing Functional Tests with PHPUnit
246246

247-
For instructions on generating the factory, please refer to the [Generate The Factory section](laravel#generate-the-factory).
247+
For instructions on generating the factory, please refer to the [Generate The Factory section](./#generate-the-factory).
248248

249249
#### Writing PHPUnit tests
250250

@@ -428,7 +428,7 @@ during the test. As a result, your test environment remains reliable and consist
428428
If everything is working properly, you should see `OK (5 tests, 15 assertions)`.
429429
Your REST API is now properly tested!
430430

431-
Check out the [API Test Assertions section](laravel#api-test-assertions-with-laravel) to discover the full range of assertions
431+
Check out the [API Test Assertions section](./#api-test-assertions-with-laravel) to discover the full range of assertions
432432
and other features provided by API Platform's test utilities.
433433

434434
## Writing Unit Tests

0 commit comments

Comments
 (0)