execute($addToCartData, Auth::user()); return new CartResource($cart); } /** * Display the specified resource. */ public function show(GetActiveUserCartAction $action) { return new CartResource($action->execute(Auth::user())); } /** * Update the specified resource in storage. */ public function update(Request $request, string $id) { // } /** * Remove the specified resource from storage. */ public function destroy(string $id) { // } }