'policy' => Rule::requiredIf(function () {
return request()->status == 1 && request()->is_single == 1;
}),
public function messages()
{
return [
'policy.required' => 'Please select Policy if you select "Single" Option',
];
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter