Custom Field Validation In Statamic

I ran into a situation recently where I needed to perform some custom validation when saving Statamic entries in the control panel. Essentially, we have a site that has lots of articles on it, and it has become harder and harder for our editors to know if they have already used a specific article title in the past.

As you may know, Statamic is based (at the time of writing) on the Laravel PHP development platform. In this tutorial I hope to show you how to easily extend Statamic field validation with your own custom validators as needed by tying into the functionality for custom validators offered by Laravel.

The first step in this process was to create a new addon for Statamic with a custom service provider. Read the rest of this entry »