Justoverclock Hi have a question, if i need to return an array of items, how can i paginate with flarum? actually i'm returning my custom model return MyCustomModel::with('myRelation') ->where('user_id', $userId) ->get();
Justoverclock actually i've read something in the docs about pagination but not work as expected, there's a way to add or at least use the infinite scrolling on a returned array?
luceos Usually you would need an IndexController of sorts that provides the API endpoint. Then you would need something on the frontend, like a Page that hits that API. If the IndexController extends the right Abstract Index Controller of Flarum, pagination should be automatic.