¨4.0.1¨

This commit is contained in:
¨NW¨
2023-12-03 14:07:47 +00:00
parent c08b36d1b6
commit f35052522d
1112 changed files with 43019 additions and 24987 deletions

View File

@@ -15,6 +15,7 @@ class SaveTaxRequest extends Request
*/
protected $availableAttributes = 'tax::attributes';
/**
* Get the validation rules that apply to the request.
*
@@ -30,6 +31,7 @@ class SaveTaxRequest extends Request
];
}
/**
* Get data to be validated from the request.
*
@@ -42,16 +44,18 @@ class SaveTaxRequest extends Request
])->all();
}
/**
* Filter tax rates.
*
* @param array $rates
*
* @return array
*/
private function filter($rates = [])
{
return array_filter($rates, function ($rate) {
return ! is_null($rate['name']) || ! is_null($rate['rate']);
return !is_null($rate['name']) || !is_null($rate['rate']);
});
}
}