Roshanay's avatar

Image Intervention usage PHP Laravel 5.4

I successfully installed image intervention package. But now I don't know how to use it. I googled and saw saw many videos. Everywhere, they give example of foo.jpg. But I want to upload dynamically, for every user. Moreover, in the examples, there is a specific controller for the image. But I tend to keep the picture uploading in the same controller as the user. Like for example, user registers, fills name, nnumber, uploads picture. How can that happen?

0 likes
5 replies
Roshanay's avatar

Yes I did. And again, they are giving foo.jpg example. This is a static example. I want a dynamic way.

sam78640's avatar

If you want dynamic filename, you need to generate that on the fly with a random string generator or use the timestamp.

Roshanay's avatar

I have been trying, but couldn't get throuugh. Can you tell me how that's done?

Please or to participate in this conversation.