This post was first published on the Flare blog.
Since the early days, Laravel includes an excellent validator class. It allows you to check if the input provided to your application is valid according a set of rules and follows a specific format. Laravel's validator works on any arbitrary array