Answer the question
In order to leave comments, you need to log in
How to display uploaded image laravel?
Hello.
I upload the image like this and write it to the database
$path = $request->file('bugScreenshot')->store('screenshots');
<img src="/storage/screenshots/kIQ2Qe4RADskwEgseUAjxsHz5vx1oDsQWeyN2MLN.jpeg" alt="">
Answer the question
In order to leave comments, you need to log in
$f = $request->file('file');
$path = $f->storePublicly(static::UPLOAD_PATH);
$url = Storage::url($path)
public/uploads
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question