public function min($input, $key, $min, $lang)
    {
        $lang = $this->custom('min', $lang);
        if (strlen($input[$key]) < $min) {
            return preg_replace_callback('/(:field)(.*)(\:num)/i',
            function ($m) use ($key, $min) {
                return $key.$m[2].$min;
            }, $lang);
        }
    }
public function min($input, $key, $min, $lang)
    {
        $lang = $this->custom('min', $lang);
        if (strlen($input[$key]) < $min) {
            return preg_replace_callback('/(:field)(.*)(\:num)/i',
            function ($m) use ($key, $min) {
                return $key.$m[2].$min;
            }, $lang);
        }
    }
public function min ( $ input , $ key , $ min , $ lang ) { $ lang = $ this -> custom ( 'min' , $ lang ) ; if ( strlen ( $ input [ $ key ] ) < $ min ) { return preg_replace_callback ( '/(:field)(.*)(\:num)/i' , function ( $ m ) use ( $ key , $ min ) { return $ key . $ m [ 2 ] . $ min ; } , $ lang ) ; } }
Parses a set minimum number of characters.

@param array  $input - Language string
@param string $key   - Validation Key
@param int    $min   - The set minimum
@param string $lang  - Language string

@return mixed
Parses a set minimum number of characters .