public function errors($nested=true) {
		$errors = $this->rules;
		foreach($this->attributes as $attribute=>$report)
			$errors[$attribute] = $nested ? $report->errors():$report->error();
		return $errors;
	}
public function errors($nested=true) {
		$errors = $this->rules;
		foreach($this->attributes as $attribute=>$report)
			$errors[$attribute] = $nested ? $report->errors():$report->error();
		return $errors;
	}
public function errors ( $ nested = true ) { $ errors = $ this -> rules ; foreach ( $ this -> attributes as $ attribute => $ report ) $ errors [ $ attribute ] = $ nested ? $ report -> errors ( ) : $ report -> error ( ) ; return $ errors ; }
Return an array of rules and attributes errors.
@return array
Return an array of rules and attributes errors .