authorize('update', $album); $metadataService->writeAlbumCover($album, $request->getFileContent()); Cache::delete("album.info.$album->id"); return response()->json(['cover_url' => $album->cover]); } }