Laravel
Eloquent models
PHP autodoc-laravel understands your database models and uses them to accurately document your API responses.
Example
return response()->json([
'user' => User::find(1),
]);


To see more examples, check out the Routing section.
The EloquentModel
extension, provided by PHP autodoc-laravel, prevents reading properties like autodoc would from a regular class, but instead will check for a toArray
method, and if not found on the model, will read properties from columns of the associated database table.
This extension also offers support for casts, appended and visible/hidden properties.