Table Builder to read from external API and apply custom pagination
I have recently implement external API to my model to read from my external API which worked perfectly, but I have an issue now in the pagination as the pagination is based on key of my response e.g.
{
'id': '123',
'total': 100
'entries': [
20 entries array
]
'links': [
'next': 'url for the next page',
'previous: 'url for the previous page'
}
I'm not able to customize the pagination to read from my external api.
As anyone faced this issue and was able to fix it. I'm using Filament v3
8 Replies
Use this package https://github.com/calebporzio/sushi
GitHub
GitHub - calebporzio/sushi: Eloquent's missing "array" driver.
Eloquent's missing "array" driver. Contribute to calebporzio/sushi development by creating an account on GitHub.
hey @waleedgrt i'm already using Sushi but i'm not able to do the pagination
I recently used the same package, and in my case, pagination worked perfectly. Would you mind to provide your code so that I may assist you?
this is my attached model
As per #✅┊rules, please use gist for code which is too long to paste.
will do next time 👍
did u solve your problem? i need the same help
Did anyone solve it?