Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kokarat's avatar

Nova to display JSON data from external site API

How to use Nova to display JSON data from external site API with pagination?

Please suggest me I'm very newbie with Laravel

Thank you.

0 likes
4 replies
jlrdw's avatar

Use laravel controller and model to get the data.

kokarat's avatar

@JLRDW - Can you example to use that? I don't know how to use the controller with Nova now

jlrdw's avatar
jlrdw
Best Answer
Level 75

From Nova docs:

Laravel Nova is a beautiful administration dashboard for Laravel applications. Of course, the primary feature of Nova is the ability to administer your underlying database records using Eloquent. Nova accomplishes this by allowing you to define a Nova "resource" that corresponds to each Eloquent model in your application.

Notice the

allowing you to define a Nova "resource" that corresponds to each Eloquent model in your application.

There is a free video series on Nova you should view, and work the examples.

Since it's from API, just thinking you might be better off just getting the data into a collection, and paginate that in a view, and not use nova, just a thought.

Paginating a collection:

https://laracasts.com/discuss/channels/laravel/how-to-paginate-laravel-collection

However if you are talking about ten's of thousands of records, a collection probably isn't a good idea. There a temp table.

Please or to participate in this conversation.