Skip to content

Use Laravel validation as a standalone component.

Notifications You must be signed in to change notification settings

Banquo1/validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Use Laravel 5 validation as a standalone component

$ composer require txthinking/validation

Usage

<?php
use Tx\Validator;

$v = Validator::make(
    ['name' => 'Day007'],
    ['name' => 'required|max:5'],
    ['name.max' => 'who are u 007']
);
if ($v->fails()){
    var_dump($v->messages());
}

Documentation

http://laravel.com/docs/5.0/validation

About

Use Laravel validation as a standalone component.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages