Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel validation for checkboxes

return Validator::make($data, [
    'firstName' => 'required|max:255',
    'lastName' => 'required|max:255',
    'email' => 'required|email|max:255|unique:users',
    'password' => 'required|confirmed|min:6',
    'checkbox' =>'accepted'
]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Laravel #validation #checkboxes
ADD COMMENT
Topic
Name
5+5 =