I decided to start a new side project in form of a YouTube channel where I speak about business side of Laravel. As I'm transitioning from being a developer to being an owner of a small team/agency, I'm looking at the same Laravel world from different perspective now - analyze the tools for effective usage and more profit. So here's the first episode of Laravel Business.
Laravel Validation mechanism has a lot of rules provided - a field can be required, integer, IP address, timezone etc. But sometimes there is a need for a special rule which is not in that list. One example of this is when you have two fields and you need only one of them to be filled. One, or another, but NOT BOTH. Laravel doesn't have a rule for that, so let's create one!