hillcow
2 years ago
117
13
Eloquent

Selfmade LengthAwarePaginator returns items not in an array and thus they can't be accessed using axios.get

Posted 2 years ago by hillcow

When using paginate() the items are in an array. When using my selfmade LengthAwarePaginator following the guide below they are not. For some reason the axios.get request returns all data but the items (maybe it can't access collections?).

What can I do?

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