Overview
Publish the default configuration file using Artisan:config/geni.php.
Options
Document Information (info)
Route Discovery (api_path & routes)
Servers (servers)
null (no servers list).
Database Migrations (migration_paths)
Schema Overrides (schema_overrides)
Security Schemes (security_scheme & middleware_security)
Documentation Renderer (renderer & renderers)
Documentation Routing & Environment Gates
viewApiDocs is defined in your application, for example Gate::define('viewApiDocs', fn (?User $user) => $user?->isAdmin());. See Documentation Authentication.
Documentation Authentication (docs_auth)
- Both
usernameandpasswordset: the credentials gate is enabled. - Both blank or
null: no credentials gate. - Only one of them set: the docs are locked (fails closed).
- Credentials are compared in constant time; form-auth logout regenerates the session id and CSRF token.
Multi-Version APIs (apis)
default and the keys of apis are valid API names: an unknown ?api= value returns 404 and an unknown --api option makes Artisan commands fail.
Model Context Protocol (mcp)
operationIds affect tool names.
Extensions (extensions)
Geni::configure(). See Customizing the Document.