|
...
|
...
|
@@ -16,6 +16,16 @@ class AsideTicketStoreRequest extends FormRequest |
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function prepareForValidation()
|
|
|
|
{
|
|
|
|
if ($this->has('close_wechat')) {
|
|
|
|
$this->merge([
|
|
|
|
// 将 "true", "1", "on", "yes" 等转换为 true,其他转换为 false
|
|
|
|
'close_wechat' => filter_var($this->close_wechat, FILTER_VALIDATE_BOOLEAN),
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
*
|
...
|
...
|
|