I think you should contact your hosting support. This is not a laravel problrm but clearlly you don't have the right permission in public. Some hosting provider limite the permission for security raisons. What is your hosting provider ?
Jan 6, 2020
2
Level 1
Laravel Image loading problem with 404 error
Dear Developers,
Recently I have uploaded my laravel project to a shared hosting server as test purposes . and I discovered that when I upload Image it stored successfully to public/images folder also stores in the db, but when It loads I see 404 error. even image link is correct. Image available in the public/images folder . What is the issue ?
Here is my blade code for image
<img src="{{ asset('images/'.Auth::guard('student')->user()->photo)}}" class="img-circle elevation-2" alt="User Image">
I set all file permission 0777 but when new image store in the folder it gets 654 permission code. it was worked fine in my local environment .Thank you
Please or to participate in this conversation.