name != $name) { abort(404); } return Storage::get($file->path); } public function download(string $uuid, string $name) { $file = AccountFile::findOrFail($uuid); if ($file->name != $name) { abort(404); } return Storage::download($file->path); } }