molotov / laravel-canpost-validator
There is no license information available for the latest version (v1.0.0) of this package.
Canadian postal code validator for Laravel 4x
v1.0.0
2013-11-12 16:08 UTC
Requires
- php: >=5.3.0
- illuminate/support: 4.0.x
Requires (Dev)
- phpunit/phpunit: 3.8.*
This package is not auto-updated.
Last update: 2024-11-19 05:49:22 UTC
README
Just what it says.
Usage
- Install with composer
{ "require": { "molotov/laravel-canpost-validator": "1.0.*" } }
- Add the service provider to your project's autoloader in
/app/config/app.php
'providers' => array( // ... 'Molotov\CanpostValidator\CanpostValidatorServiceProvider' );
- Use it by adding
canadian_postal_code
to your attribute's validation rules.
$rules = array('postal_code' => 'canadian_postal_code|required'); Validator::make($attributes, $rules);