php date field validator how to pass mindate and maxdate values ?

php date field validator how to pass mindate and maxdate values ?

johndoojohndoo Posts: 18Questions: 5Answers: 1

Field::inst('datecolumn')->validator(
function ( $val, $data, $opts )
{ // HOW do I verify here that $val>=mindate and <=maxdate values ? and how to pass those values to the function ?
} );

This discussion has been closed.