Hi, I want to create a kind of social media platform. So I have different Posts, where each post potentially has an image. I have a Web Service set up with Laravel (Data stored in MySQL DB (for images I save the id + path)).
My current workflow for my client to get a page with several posts is, the he does a request to the WS and gets the post relevant data (author, text,...,img_id). Then the client does a GET request to my WS for each img_id he got in the post data. This works... But takes a little to long. (When I load a post I want to load the Profile Image of the author as well (as mini Icon) but currently I load the whole Image (up to 8mb) for it.)
Is there a smarter way to do this? E.G. get all images with one request? Thanks in advice.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community