skip to Main Content

I have this error, when open website

GET http://127.0.0.1:8000/storage/categories/portable.jpg 404 (Not Found)
categories:73

This is link of the code in the browser https://imgur.com/a/VwXavqd

In my .env file i wrote:

APP_URL=http://127.0.0.1:8000

FILESYSTEM_DISK=public

But it doesn’t help.

2

Answers


  1. If you put file portable.jpg in the storage>app>public>images>categories folder use <img src="/storage/images/categories/portable.jpg" />

    Or if you put that in the storage>app>public>categories
    use <img src="/storage/categories/portable.jpg" />

    And also make sure you used command php artisan storage:link

    Login or Signup to reply.
  2. So first thing

    Delete storage folder from public

    And run this again

    Php artisan storage:link 
    

    Then go to your config/filesystems.php and check your disk configuration

    Also sometimes it can be caching issues
    So Try running

    php artisan cache:clear 
    php artisan config:clear 
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search