Support the ongoing development of Laravel.io →
Database Views Architecture

I have almost finished a project for a photographer when he came up with one more idea on which I agree to spend some time because I never worked on such task before. So a very quick brief on his wishes:

  • He wanted a separate part on the web site on which a client could login and with a password see the photos from the photo shot (you all know this is an easy part :) )
  • He wanted to have a lots of photos there (I am speaking 200-300+ photos)
  • Uploading this amount of photos via a CMS I made for him could be prone to mistakes (broken upload etc.) So after I gave some thoughts to this problem I come up with some sort of solution (and this is the part I need your help and advice)
  1. He uploads all the photos and thumbs (which he is already generating via LightRoom) into one folder on the server
  2. In CMS he enters the path of the folder, Laravel and my script then browse the folder, scan all the files and sorts them into arrays (for big images and thumbs; thumbs would be separated by their name thumb_xxxx), and those arrays would be then written into database and associated with the gallery
  3. CMS would serve his client with the images (gallery) associated with clients password (id)

So, am I getting this right or is there some other elegant solution I missed?

Last updated 2 years ago.
0

Personally, I have built something similar and allowed the user to upload via the cms. Used Dropzone.js and customised it as needed. You can then run any php on each upload to resize or whatever you need.

I prefer this approach as it's more streamlined for the client and you have more control over the images.

It's personal choice really. Your approach should work - as long as the photographer is techy enough. IF you plan to use the smae code down the line, then the next client might not be quite as techy.

0

Hey, they do their stuff in ligthroom, don't make life harder for them, let them upload directly, and you can build a soluition that goes into the folders and reads-> lists the files so they are ready for download

you can also write a thumnail creator, so the clients can see the images faster

I've done it before in plain php, but I'm sure in laravel it's easy

0

Sign in to participate in this thread!

Eventy

Your banner here too?

zlatiborac zlatiborac Joined 28 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.