Jul 26, 2017 · 1 min read
hi Chirst I can not paginate at Firebase.
https://github.com/kreait/firebase-php
I’m using this package
I want to take 10 recipes and go backwards.
return $database->getReference($this->path . ‘/’ . $conversationId . ‘/messages’)
->orderByChild(‘created_at’)
->limitToFirst(config(‘firebase.take’))
->startAt($startAt)
->getValue();
My sample.
My data structure ;
conversations