Is this considered a bug in Laravel?
Make a validator and require the field to be a string. It correctly fails on integers and booleans, but POST the field as an empty array (json) and it will pass, then later on it crashes in my app
ErrorException in helpers.php line 740: preg_replace(): Parameter mismatch, pattern is a string while replacement is an array
I am encountering this same issue. Did you by chance bring this up in a Github issue or pull request?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community