I am using Laravel 5.5, and I have problems to update images and videos. The thing here is that I have an index of my videos, these videos are being uploades to a folder (\storage\app\public\videos) this path has been linked whith the command:
php artisan storage:link
I have no problem storing any file, I use the following code on my controller:
$videoName = "".$request->user."_".$request->propiedad."_".$videoNumber.".mp4"; $request->video->storeAs('public/videos', $videoName);
As I said everything works fine, but if I try to update this file, I save it with the same name using the same code:
And it saves when i check the folder, but the view displays the old video instead of the new one, i am not sure what is going on I have tried to clear cache but is not working.