storage
to retrieve the photos using the package league/glide
, that is, in the tag <img>
indicates Routh who works with photos. But how to be, is there a simple solution?public
folder is accessible from Internet and the file storage
is closed and the other...<source src="/storage/file.mp4" type="video/mp4">
Route::get('/videos/{filename}', function($filename){
$file = Storage::get('videos/'.$filename);
$mimetype = Storage::mimeType('videos/'.$filename);
return response($file, 200)->header('Content-Type', $mimetype);
});