First up for this series is a review of two new middleware that are included with Laravel out of the box: TrimStrings
and ConvertEmptyStringsToNull
. In effect, for every form request, Laravel will automatically trim any white space, while also converting all empty request fields to null
.