Laravel 5.3 Validation Fails when Variables are Null
问题 Since upgrading laravel from 5.1 to 5.3, I've got couple of odd issues with Validation. When I post a data like this: firstName null And the validation rules are like this: $validator = Validator::make($postData, [ 'firstName' => 'string|max:255', 'lastName' => 'string|max:255' ]); The above fails with the messages something like "The XYZ must be a string." . What I don't understand is: Why is the validation failing when it is not set as required ? Meaning, it should ignore it and not throw