src/Validator/Validator.php
public function required($value)
    {

        if(!$this->hasMessage('required')){
            $this->addMessage('required', 'This value is required');
        }

        if (is_null($value) || $value == '') {
            return false;
        }

        return true;
    }
public function required($value)
    {

        if(!$this->hasMessage('required')){
            $this->addMessage('required', 'This value is required');
        }

        if (is_null($value) || $value == '') {
            return false;
        }

        return true;
    }
public function required ( $ value ) { if ( ! $ this -> hasMessage ( 'required' ) ) { $ this -> addMessage ( 'required' , 'This value is required' ) ; } if ( is_null ( $ value ) || $ value == '' ) { return false ; } return true ; }
Return FALSE if value is null or empty string

@param $value
@return bool
Return FALSE if value is null or empty string