AM
class OrderRefundAmountRequest extends FormRequest
{
/** @var \App\Models\OrderModel */
protected $order;
****
protected function prepareForValidation()
{
$this->order = $this->route('order');
}
****
}
Size: a a a
AM
class OrderRefundAmountRequest extends FormRequest
{
/** @var \App\Models\OrderModel */
protected $order;
****
protected function prepareForValidation()
{
$this->order = $this->route('order');
}
****
}
EG
D
EG
EG
new ProductVariantImageAlreadyAssociatedRule($this)
AM
AM
D
EG
AM
EG
EG
EG
EG
public function rules(): array
{
return [
'image_id' => [new ProductVariantImageAlreadyAssociatedRule($this->route('product_variant'), $this->route('image'))],
];
}
AM
public function rules(): array
{
return [
'image_id' => [new ProductVariantImageAlreadyAssociatedRule($this->route('product_variant'), $this->route('image'))],
];
}
EG
AM
AM
AM
EG