Skip to content

Configuration

After publishing the configuration file (php artisan vendor:publish --tag="async-api-config"), you can customize the generated AsyncAPI specification by editing config/async-api.php.

Options

OptionDescription
asyncapi_versionThe AsyncAPI specification version (default: 3.0.0).
default_content_typeDefault content type for all messages.
info_titleThe title of your API.
info_versionThe version of your API.
info_descriptionA short description of your API.
server_hostThe broadcasting server host (e.g. localhost).
server_portThe broadcasting server port (e.g. 8080).
server_schemeThe HTTP scheme used to connect (e.g. https or http).
server_app_keyThe Reverb/Pusher app key.
security_descriptionThe description of the Bearer authentication method.
middlewareMiddleware to assign to the AsyncAPI routes.
debugEnable detailed logging during scanning (default: true).

Debug Mode

When config('async-api.debug') is true, the package logs detailed information about the scanning and generation process via Log::info(). This is useful during development to see which events were discovered and how they were processed.