I have a project which contains some video files in storage/app/public/homepage/
The files are really there and in html there is something like
<video autoplay muted loop>
<source src="http://localhost:8000/storage/homepage/vid3.mp4" type="video/mp4" />
</video>
But video does not play. I tried to run php artisan storage:link
but it wrote
publicstorage] link already exists. The links have been created.
So I run php artisan serve but can not see the video on localhost. Network shows error 404 not found.
What am I doing wrong? Project is pretty old and everything worked till this day. I did not make any changes.
Thanks for help.
2
Answers
Is asset() helper function available in Laravel 7? If so perhaps try using that
Explanation: