skip to Main Content

am getting 404 NOT FOUND on clicking cv
am using this

`<td class="border px-4 py-2"><a href="{{ asset('storage/cv_files/' . $student->cv_file) }}">{{ $student->cv_file }}</a>
</td>`

am getting 404 not found on this url

http://localhost/storage/cv_files/cv_files/IrF7GnM9QXLehTjOwV4a9K5HiaQLwfUKQEU7LNgR.pdf
but the file is in the correct folder that is Storage/app/cv_files

I have tried with different url routes still am getting this
i run the command already
php artisan storage:link and its successfully running

2

Answers


  1. Maybe try /storage/cv_files/ or Storage/app/cv_files instead of storage/cv_files/

    Login or Signup to reply.
  2. the {{asset()}} helper points to the public/ dir, you may need to add a symlink from your storage folder and public folder.

    Check out this post Laravel storage symlink

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search