Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

not required a field when checked not applicable checkbox in laravel

// when some checked no checkbox and description field not required otherwise required
'description' => 'required_unless:descriptionNotApplicable,yes|max:150'
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #required #field #checked #applicable #checkbox #laravel
ADD COMMENT
Topic
Name
2+6 =