defaultValue.php
Table of Contents
Functions
- defaultValue() : string
- Generates the 'default:value' rule expression.
Functions
defaultValue()
Generates the 'default:value' rule expression.
defaultValue(mixed $value) : string
If the attribute has no value, this default will be used in place in the validated data.
For example if you have validation like this
Parameters
- $value : mixed
-
The default value.