I have a table which have following fields
id | post_id | sender | receiver | filename | created_at | updated_at
1 | 1 | 1 | 2 | file.jpg | date | date
files are store in
storage/sender/postid/file.jpg which means it is in storage_direcotry/1/1/file.jpg
what i want to create a download link which only allow receiver to download the file any other user or guest try to access the link will end up seeing 404 or any other error.