ImageColumn shows an ? with 404 not found error on console
Hello, Im trying to show an image on a relationmanager table. The image is stored on the public disk on the filesystem and ive already linked my public storage with artisan storage:link, but when i go to my resource, the image doesnt appear and in my browser console i get the following error: Failed to load resource: the server responded with a status of 404 (Not Found) with the url http://127.0.0.1:8000/admin/products/17/localhost/storage/filename.jpg. Im using the following code block to show the image: return $table
->recordTitleAttribute('image_url')
->columns([
ImageColumn::make('image_url')->disk('public')->width(200)->height(200)
])
would appreaciate any help! thanks in advance!
Solution:Jump to solution
Well i solved it, it was not finding the image as the APP_URL on my .env was localhost and on the browser it was on 127.0.0.1 and i simply thought localhost was some placeholder for the ip
1 Reply
Solution
Well i solved it, it was not finding the image as the APP_URL on my .env was localhost and on the browser it was on 127.0.0.1 and i simply thought localhost was some placeholder for the ip