PATH:
home
/
lab2454c
/
crypto.keyreum.com
/
platform
/
plugins
/
ecommerce
/
src
/
Http
/
Requests
<?php namespace Botble\Ecommerce\Http\Requests; use Botble\Support\Http\Requests\Request; class ShippingRuleRequest extends Request { /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $ruleItems = []; foreach ($this->input('shipping_rule_items', []) as $key => $item) { $ruleItems['shipping_rule_items.' . $key . '.adjustment_price'] = 'required|numeric'; } return [ 'name' => 'required|max:120', 'from' => 'required|numeric', 'to' => 'nullable|numeric|min:' . (float)$this->input('from'), 'price' => 'required', 'type' => 'required', ] + $ruleItems; } /** * @return array */ public function attributes() { $attributes = []; foreach ($this->input('shipping_rule_items', []) as $key => $item) { $attributes['shipping_rule_items.' . $key . '.adjustment_price'] = trans('plugins/ecommerce::shipping.adjustment_price_of', $key); } return $attributes; } }
[-] ShippingRuleRequest.php
[edit]
[-] ShippingMethodRequest.php
[edit]
[-] BulkImportRequest.php
[edit]
[-] UpdateCartRequest.php
[edit]
[-] CreateProductWhenCreatingOrderRequest.php
[edit]
[-] CurrencyRequest.php
[edit]
[+]
..
[-] ProductVersionRequest.php
[edit]
[-] CustomerEditRequest.php
[edit]
[-] FlashSaleRequest.php
[edit]
[-] CustomerUpdateEmailRequest.php
[edit]
[-] AddressRequest.php
[edit]
[-] ProductCollectionRequest.php
[edit]
[-] CreateOrderRequest.php
[edit]
[-] CheckoutRequest.php
[edit]
[-] UpdateSettingsRequest.php
[edit]
[-] CreateShipmentRequest.php
[edit]
[-] RefundRequest.php
[edit]
[-] ProductUpdateOrderByRequest.php
[edit]
[-] ProductCategoryRequest.php
[edit]
[-] ProductTagRequest.php
[edit]
[-] AvatarRequest.php
[edit]
[-] AddCustomerWhenCreateOrderRequest.php
[edit]
[-] StoreLocatorRequest.php
[edit]
[-] DiscountRequest.php
[edit]
[-] ProductRequest.php
[edit]
[-] ReviewRequest.php
[edit]
[-] ProductLabelRequest.php
[edit]
[-] UpdatePasswordRequest.php
[edit]
[-] ProductAttributeSetsRequest.php
[edit]
[-] PriceRequest.php
[edit]
[-] SaveCheckoutInformationRequest.php
[edit]
[-] ApplyCouponRequest.php
[edit]
[-] CustomerCreateRequest.php
[edit]
[-] AddShippingRegionRequest.php
[edit]
[-] CartRequest.php
[edit]
[-] UpdatePrimaryStoreRequest.php
[edit]
[-] BrandRequest.php
[edit]
[-] EditAccountRequest.php
[edit]
[-] TaxRequest.php
[edit]
[-] UpdateOrderRequest.php
[edit]