Level 51
In the storage public directory and store the URL for that image in the DB.
I am building up an e-learning website. There I have to include lots of images related to different courses. But I am confused how to do that. I can store images on database or I can store images on my app’s source folder. Which way should I implement that? Thank u.
@amirr Images are files. Store them in a file system (disk). Not a database.
You can either store image files in your application’s storage directory, or using a cloud storage provider like AWS S3.
Please or to participate in this conversation.