authorize('own', $playlist); $this->mediaMetadataService->writePlaylistCover($playlist, $request->getFileContent()); return response()->json(['cover_url' => $playlist->cover]); } public function destroy(Playlist $playlist) { $this->authorize('own', $playlist); $this->mediaMetadataService->deletePlaylistCover($playlist); return response()->noContent(); } }