[F-REQ] Add withCount same way as $itemWith
and $collectionWith
#14
Labels
enhancement
New feature or request
$itemWith
and $collectionWith
#14
Is your feature request related to a problem? Please describe.
It's now unable to add counts for relations in API without overriding almost all functions in default Controller at
laravel5-api-boilerplate
, so it'll be nice to add such functions to this libraryDescribe the solution you'd like
Add a new variable and function to
RestfulModel
the same way, as$itemWith
and$collectionWith
:$itemWithCount
and$collectionWithCount
Describe alternatives you've considered
IMHO, there is no other alternatives
Additional context
@specialtactics let me know, if you like this feature, and I'll start working on PR
The text was updated successfully, but these errors were encountered: