mahmoudtrageh
1 month ago
212
3
Laravel

I want to use orderBy throw this array ?

Posted 1 month ago by mahmoudtrageh

this code responsible for retrieving data and make a pagination from firestore

$limit = 10;

$url = 'm-url'&pageSize='.$limit.'&pageToken='.$nextPageToken;

$json = json_decode(file_get_contents($url), true);

$users = $json['documents'];

I want to use orderBy and get the data on basis of created_at field ?

Please sign in or create an account to participate in this conversation.