interactionService->batchLike((array) $request->songs, $request->user()); return response()->json($interactions); } /** * Unlike multiple songs. * * Unlike several songs at once, useful for "batch" actions. An array of "interaction" records containing the song * and user data will be returned. * * @bodyParam songs array required An array of song IDs. * @responseFile responses/interactions.json */ public function destroy(BatchInteractionRequest $request) { $this->interactionService->batchUnlike((array) $request->songs, $request->user()); return response()->json(); } }