Файл: app/Http/Requests/StoreTaxRateRequest.php
Строк: 28
<?php
namespace AppHttpRequests;
use AppRulesValidateExtendedLicenseRule;
use IlluminateFoundationHttpFormRequest;
class StoreTaxRateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => ['required', 'max:128', new ValidateExtendedLicenseRule()],
'type' => ['required', 'min:0', 'max:1'],
'percentage' => ['required', 'numeric', 'min:1', 'max:100'],
'regions' => ['sometimes', 'nullable']
];
}
}