Image courtesy of Unsplash

In this new series, we’ll be exploring the concept of custom validation rules in Laravel and how they can assist you. I’m posting an article each day with a new rule you can use in your projects. The rules are also part of a package.

In this post, we’ll be creating a rule which serves as the opposite to Laravel’s native database exists rule. The rule will ensure that a record does not exist.