← All changes
|
app/Http/Requests/FrontendRequests/CouponRequest.php
+2
-1
1.6.4
→
1.7.1
View file →
| @@ -1,8 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace FluentCart\App\Http\Requests\FrontendRequests; |
| 4 | 4 | |
| 5 | +use FluentCart\App\Helpers\CartHelper; | |
| 5 | 6 | use FluentCart\Framework\Foundation\RequestGuard; |
| 6 | 7 | |
| 7 | 8 | class CouponRequest extends RequestGuard |
| 8 | 9 | { |
| @@ -21,9 +22,9 @@ | ||
| 21 | 22 | "order_items.*.order_id" => 'numeric|min:1', |
| 22 | 23 | "order_items.*.post_id" => 'numeric|min:1', |
| 23 | 24 | "order_items.*.variation_id" => 'numeric|min:1', |
| 24 | 25 | "order_items.*.type" => 'nullable|sanitizeText|maxLength:100', |
| 25 | - "order_items.*.quantity" => 'numeric|min:1', | |
| 26 | + "order_items.*.quantity" => 'numeric|min:1|max:' . CartHelper::maxQuantity(), | |
| 26 | 27 | "order_items.*.title" => 'nullable|sanitizeText|maxLength:100', |
| 27 | 28 | "order_items.*.price" => 'numeric', |
| 28 | 29 | "order_items.*.unit_price" => 'numeric', |
| 29 | 30 | "order_items.*.item_cost" => 'numeric', |