Currently the required method marks a field as required, however if I wanted to mark a field as required from a variable, I have to put the call in an if statement.
ex. Former::text('fieldname')->required($bool)
Ideally this will mark a field as not required if it was already set to required if false is passed in.
Currently the
required
method marks a field as required, however if I wanted to mark a field as required from a variable, I have to put the call in an if statement.ex.
Former::text('fieldname')->required($bool)
Ideally this will mark a field as not required if it was already set to required if false is passed in.