Laravel image gallery logic

后端 未结 2 1758
庸人自扰
庸人自扰 2020-12-28 10:32

I recently started to develop a pretty huge site. On the site i would like to allow users to upload their sample works. We are pretty limited at the moment so the images wil

2条回答
  •  遥遥无期
    2020-12-28 11:13

    The metode of Storing the folder table and using the scandir function is a standared procedure. And allow php to retrive the file names from the folder. If you have a number of files then try categorizing them with year and month order like in wordpress. Like

    2012
      01
      02
      03
    2013
      01
      02
      03 
    

    etc inside the folder id. So the total number of images in a folder will be comparatively less.

提交回复
热议问题