Laravel – what is the best and most efficient way of displaying, sorting and filtering an array of data (not database)

I make an external API request which returns a JSON list of items. Note, no database is used.

Now I need to display this data on screen, and allow the user to change the order (by name, by ID) and to filter out results.

I can do this a classic way using javascript perhaps, but is there a good fluid data sorting/filtering/displaying mechanism?

I thought maybe Vue might come in useful here (I'm not experienced with it, but I'm guessing it's more efficient than using vanialla JS)?

Any ideas or suggestions on best practices, and cleanest most efficient methods?



Read more here: https://stackoverflow.com/questions/65719715/laravel-what-is-the-best-and-most-efficient-way-of-displaying-sorting-and-fil

Content Attribution

This content was originally published by James at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: