Laravel string validation to allow empty strings
Try to see if ConvertEmptyStringsToNull
middleware is active then it would explain this behavior, see docs
You would need nullable
to allow an empty string
public function rules()
{
return [
'age' => 'integer',
'title' => 'nullable|string|max:50'
];
}