public function checkCouponCode(Discount $discount): JsonResource 	{ 		if (!$discount->isCouponCodeAvailable()) { 			abort(404, 'Discount not available'); 		}  		return new DiscountResource($discount); 	}