Like or unlike a song on behalf of a user.
public static toggleLike ( string $songId, |
||
$songId | string | |
$user | ||
Résultat |
/** * Like or unlike a song as the currently authenticated user. * * @param Request $request * * @return \Illuminate\Http\JsonResponse */ public function like(Request $request) { return response()->json(Interaction::toggleLike($request->input('song'), $request->user())); }