validation laravel for +string code example
Example 1: numbric validate laravel
$rules = ['Fno' => 'numeric|min:2|max:5', 'Lno' => 'numeric|min:2'];
Example 2: laravel validation
Validator::extend('foo', 'FooValidator@validate');
$rules = ['Fno' => 'numeric|min:2|max:5', 'Lno' => 'numeric|min:2'];
Validator::extend('foo', 'FooValidator@validate');