TextInput::make('max')
->hintIcon('heroicon-o-information-circle','Length excluding the extension.')
->numeric()
->rules([
function () {
return function (GET $get, $value, Closure $fail) {
if ($value > $get('min') {
$fail('The :attribute is invalid.');
}
};
},
])
->live(),
TextInput::make('max')
->hintIcon('heroicon-o-information-circle','Length excluding the extension.')
->numeric()
->rules([
function () {
return function (GET $get, $value, Closure $fail) {
if ($value > $get('min') {
$fail('The :attribute is invalid.');
}
};
},
])
->live(),