Apis
using pagination in api request
ex : send users ten per page
thanks
Is this a question or a statement?
No one on earth (not even yourself), knows what you want here.
@cmdobueno i mean how can i do that ?!!!
this place for discuss not for advice ;)
Something to the effect of: $collection->paginate(10);
So I will do some assuming since you provided NO information here
public function someUnknownMethodNameIsGoingToBeUsedHereBecauseICan(){
$myVariableToHoldMyPaginationNumber = 10;
return response()
->json(
[
'hereIsTheArrayKeyToHoldMyQueryResultsWhereILiterallyJustAddPaginateToMyQuerySoThatICanSendItBack' => MyModelHereHasAReallyReallyLongNameAsWellIAmStartingToNoticeATrend::paginate($myVariableToHoldMyPaginationNumber )
);
}
using pagination in api request
Taylor does have that in the documentation.
Please or to participate in this conversation.