App\Http\Controllers\API\InteractionController::batchLike PHP Méthode

batchLike() public méthode

Like several songs at once as the currently authenticated user.
public batchLike ( BatchInteractionRequest $request ) : Illuminate\Http\JsonResponse
$request App\Http\Requests\API\BatchInteractionRequest
Résultat Illuminate\Http\JsonResponse
    public function batchLike(BatchInteractionRequest $request)
    {
        return response()->json(Interaction::batchLike((array) $request->input('songs'), $request->user()));
    }