src/Jordij/SweetCaptcha/SweetCaptchaValidator.php
public function validateSweetcaptcha($attribute, $value, $parameters)
    {

        if (Input::has('scvalue'))
        {	
        	$sweetcaptcha = app()->make('SweetCaptcha');        	
        	return $sweetcaptcha->check(array('sckey' => $value, 'scvalue' => Input::get('scvalue'))) == "true";
    	}
    	else
    		return false;
    }
public function validateSweetcaptcha($attribute, $value, $parameters)
    {

        if (Input::has('scvalue'))
        {	
        	$sweetcaptcha = app()->make('SweetCaptcha');        	
        	return $sweetcaptcha->check(array('sckey' => $value, 'scvalue' => Input::get('scvalue'))) == "true";
    	}
    	else
    		return false;
    }
public function validateSweetcaptcha ( $ attribute , $ value , $ parameters ) { if ( Input :: has ( 'scvalue' ) ) { $ sweetcaptcha = app ( ) -> make ( 'SweetCaptcha' ) ; return $ sweetcaptcha -> check ( array ( 'sckey' => $ value , 'scvalue' => Input :: get ( 'scvalue' ) ) ) == "true" ; } else return false ; }
Validation method for the Sweet Captcha input values.
@param  [type] $attribute  [description]
@param  [type] $value      [description]
@param  [type] $parameters [description]
@return boolean
Validation method for the Sweet Captcha input values .