I'm making an web app where people create their profile and upload pictures with its description. Now I'm done with the creating a profile part now I need to implement functionality where user can update their posts.
Where they will upload a pic, description And this post will be public.
How should I go for it? Any good library recommendation? How and where should I store these pictures?
Also for the description part, I want to add there little good HTML text editor. Please guide me.
Intervention/Image is the best PHP image manipulation library that I know of.
Docs on that here: http://image.intervention.io/getting_started/installation
It allows you to resize, alter, save ("save" means saving the image and altered versions of it in some directory), etc.
If these images are going to be public, then you can store them in the public directory. If not, I would store them in the storage directory.
When I save the images, I "save" or "store' them in a directory and I save the location of the files in the database.
I made a package that can handle uploads, associate them with Eloquent models and create thumbnails.
Take a look at the documentation.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community