fileEntry->decodeHash($hash); }, $hashes); $ids = array_filter($ids); if (!$ids) { abort(404, 'No entry hashes provided.'); } $entries = $this->fileEntry->whereIn('id', $ids)->get(); $this->authorize('download', [FileEntry::class, $entries]); return app(DownloadFilesResponse::class)->create($entries); } }