protected function compileMin($key, $masque)
    {
        if (!preg_match("/^min:(\d+)$/", $masque, $match)) {
            return;
        }

        $length = (int) end($match);

        if (Str::len($this->inputs[$key]) > $length) {
            return;
        }

        $this->fails = true;
        
        $this->last_message = $this->lexique('min', [
            'attribute' => $key,
            'length' => $length
        ]);

        $this->errors[$key][] = [
            "masque" => $masque,
            "message" => $this->last_message
        ];
    }
protected function compileMin($key, $masque)
    {
        if (!preg_match("/^min:(\d+)$/", $masque, $match)) {
            return;
        }

        $length = (int) end($match);

        if (Str::len($this->inputs[$key]) > $length) {
            return;
        }

        $this->fails = true;
        
        $this->last_message = $this->lexique('min', [
            'attribute' => $key,
            'length' => $length
        ]);

        $this->errors[$key][] = [
            "masque" => $masque,
            "message" => $this->last_message
        ];
    }
protected function compileMin ( $ key , $ masque ) { if ( ! preg_match ( "/^min:(\d+)$/" , $ masque , $ match ) ) { return ; } $ length = ( int ) end ( $ match ) ; if ( Str :: len ( $ this -> inputs [ $ key ] ) > $ length ) { return ; } $ this -> fails = true ; $ this -> last_message = $ this -> lexique ( 'min' , [ 'attribute' => $ key , 'length' => $ length ] ) ; $ this -> errors [ $ key ] [ ] = [ "masque" => $ masque , "message" => $ this -> last_message ] ; }
Complie Min Mask

[min:value] Check that the content of the field is a number of
minimal character following the defined value

@param string $key
@param string $masque

@return void
Complie Min Mask