Laravel
Query builder
PHP autodoc-laravel recognizes your query builder methods and uses them to accurately document your API responses and TypeScript types.
Example
return response()->json(
Planet::select('id', 'diameter')
->with('spaceStations:id,name')
->where('has_rings', true)
->get()
);
By default PHP autodoc-laravel will ignore any unknown/dynamic methods within query builder. To disable this behavior, set laravel.abandon_query_builder_parsing_on_unknown_methods to false in your configuration file.