Skip to content
Laravel validators for commonly used UK validation methods.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
README.md
composer.json
phpunit.xml

README.md

Carve Validators

A set of UK-centric validation rules (and maybe more) for Laravel 4.

Installation

  1. Add the following to your composer.json and run composer update

    {
        "require": {
            "carve/validators": "dev-master"
        }
    }
  2. Add Carve\Validators\ValidatorsServiceProvider to your config/app.php

Available Rules

Postcode

'address_postcode' => 'required|postcode'

Bank Account

'bank_account_number' => 'required|bankaccount'

Sort Code

'bank_sort_code' => 'required|sortcode'

National Insurance Number

'ni'=>'required|nationalinsurance'
You can’t perform that action at this time.