I have a form and there is a field in this form called dimensions
and users MUST enter a value like this: 10x10x10
So I am separating length, width and height by x
.
But now I don't know how to make this validation with Laravel:
$request->validate([
'dimensions' => 'required|max:10|min:5',
]);
So the question is: How can I force users to separate each dimensions by writing x
?