DEV Community

ISMAIL DEKKAN
ISMAIL DEKKAN

Posted on

Laravel

/* $imageName = time() . '.' . request()->file("image")->getClientOriginalExtension();
request()->file("image")->move(public_path('storage/img'), $imageName);
http://localhost:8000/storage/img/1679659351.jpg */

Top comments (1)

Collapse
 
nlxdodge profile image
NLxDoDge

Is this suppose to be a question?
If I am assuming that you put this in production, where localhost:8000 is not available and thus the image is not working?