Delete attachment's file on disk

This commit is contained in:
Burak Çakırel
2021-06-17 16:40:12 +03:00
parent 873d25c742
commit 9dd1c92c6f
2 changed files with 7 additions and 7 deletions

View File

@@ -100,10 +100,10 @@ trait Uploads
return false;
}
return Storage::path($path);
return $path;
}
public function streamMedia($media, $path = '')
public function streamMedia($media)
{
return response()->streamDownload(
function() use ($media) {