421c/autodoc-laravel
AutoDoc for Laravel automatically generates clear, up-to-date documentation from your existing Laravel codebase. It inspects routes, controllers, requests, and models to keep API and project docs accurate with minimal manual effort.
laravel.abilities_as_security_roles option lets you suppress can:<ability> entries from the generated security requirements. This matters for two product calls: (a) whether your published spec should describe authentication scheme only (Sanctum/Passport) versus per-endpoint permissions, and (b) whether third-party integrators should see your internal ability names at all. Ability names are effectively internal domain vocabulary; exposing them in a partner-facing spec is a small information-disclosure and API-surface-commitment decision, not just a formatting preference. The flag gives you a supported way to make that call per environment instead of post-processing the YAML.Consider it when:
Look elsewhere when:
For executives: We can publish an accurate API reference for our Laravel services without a documentation project or a SaaS subscription. The spec is generated from the code we already ship, so it cannot drift the way a wiki does, and it unblocks partner onboarding, SDK generation, and gateway import — all of which currently start with someone reading our source. Cost is a config file and a CI step. Risk is low: the latest patch is a single opt-in configuration flag that changes nothing unless we enable it, and it lets us keep internal permission names out of partner-facing documentation.
For engineering: Documentation is derived from routes, controllers, middleware, and authorization definitions, so it stays honest as long as the code does. No production runtime dependency; generation runs in CI and the output is diffable, which means API surface changes show up in code review. The v2.2.2 option, laravel.abilities_as_security_roles, controls whether can:<ability> entries appear as security roles in the spec — set it off when abilities are internal vocabulary or when consumers should reason about authentication only. Default behavior is unchanged, so adoption is a config edit plus a review of the first generated diff, and we should budget that review explicitly: the generated spec is a draft to be corrected, not ground truth.
How can I help you explore Laravel packages today?