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

veks21's avatar

How to store data form external api ?

I want to download an external api using laravel, to display, add and remove pets. And I have a question whether this data should be saved to the database somehow or not? How to best approach this?

0 likes
2 replies
martinbean's avatar

I have a question whether this data should be saved to the database somehow or not? How to best approach this?

@veks21 How are we supposed to know? It’s your project. You need to decide what is it you’re doing and how it should work.

1 like
jlrdw's avatar

And I have a question whether this data should be saved to the database somehow or not?

Well is the data always used from the API or locally as well? If API then you just display the data from the API in an iframe or object.

But you didn't give much detail as mentioned.

I have used adopt-a-pet API, but it's been quite a few years ago.

Please or to participate in this conversation.