Skip to content

docs: use the real Laravel configuration in the reference - #2379

Open
Maxcastel wants to merge 4 commits into
api-platform:5.0from
Maxcastel:fix/laravel-configuration-reference
Open

Maxcastel wants to merge 4 commits into
api-platform:5.0from
Maxcastel:fix/laravel-configuration-reference

Conversation

@Maxcastel

Copy link
Copy Markdown

The "Laravel Configuration" block was the Symfony configuration written as PHP arrays: a lot of keys Laravel never reads (eager_loading, collection, mapping, swagger, mercure…), some values that break (formats with mime_types, a Symfony service id for path_segment_name_generator), and none of the real keys (resources, routes, swagger_ui, mcp…). It's now the config/api-platform.php that api-platform:install publishes.

While at it:

  • the Symfony Scalar example used api_platform.swagger.scalar_extra_configuration, the option is under openapi
  • ApiPlatform\Action\NotFoundAction is now ApiPlatform\Symfony\Action\NotFoundAction
@Maxcastel
Maxcastel force-pushed the fix/laravel-configuration-reference branch from 46cc85d to c0a035a Compare November 30, 2026 14:53

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant