I am new to php and trying to use a php code in my local system. The code is working fine but its images and static files are not loading properly. when i tried to debug the issue i found that the correct image link in browser renders the login page of the program.
This is a strange scenario and i am not finding any solutions in any platform.
The urls i am trying are http://localhost:8000/image/banners/RG1.jpg to access the public/image/banners directory.
I also have created a symlink and tried the url http://localhost:8000/storage/images/user/RG1.jpg to access image stored in storage/app/public/images/user directory. This also generates the same result. The screenshot of the output is attached below.
output screenshot
I guess there is some poblem in middleware or routing.
you tried this command
for link folder
then use