A new feature coming to Laravel 5.5 is a new feature for adding custom validation rules and Taylor has a written up a quick tutorial on it.
Here is an example of the validation:
and here is the ValidRepository class that checks:
For complete information on this take a look at Taylor’s post which goes into details on it all.
![Eric L. Barnes photo](https://laravel-news.com/storage/profile-photos/YlkXwoKe1xHNPfmxXdAbBIeCqg9kFE7CtyKySeI1.jpg)
Eric is the creator of Laravel News and has been covering Laravel since 2012.