json(Interaction::batchLike((array) $request->songs, $request->user())); } /** * Unlike several songs at once as the currently authenticated user. * * @param BatchInteractionRequest $request * * @return JsonResponse */ public function destroy(BatchInteractionRequest $request) { return response()->json(Interaction::batchUnlike((array) $request->songs, $request->user())); } }