Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hg2000's avatar

How to deal with user uploaded images when deploying with rocketeer

Hello,

I have a laravel app where a user can upload images. In my first draw those images are simply stored in an "image" folder under "public". This leads to the problem that the folder will be removed when I deploy via rocketeer on the production server.

My first thought to solve this is to create a task where the image folder will be copied before deployment and then pasted after. But I have the feeling that there should be a more elegant way.

Does anyone know a better practise?

0 likes
0 replies

Please or to participate in this conversation.