Showing 10 of 129 results.
Returns the Blade errors. Returns a Collection instance containing the document's errors. This method will return errors from all sources, such as parser and validation errors. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 public...
Returns a collection containing the document's validation errors. Errors added to the document via. the addValidationResult or addValidationError methods will be included in the results. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5...
Tests if any errors are present. 1 <?php 2 3 public function hasErrors ( ) : bool ;
Retrieves the first error. If the error source contains multiple types of errors, such as parser errors and validation errors, all errors will be considered. 1 <?php 2 3 use Stillat \ BladeParser \ Errors \ BladeError ; 4 5 public function...
Retrieves the first fatal error. If the error source contains multiple types of errors, such as parser errors and validation errors, all errors will be considered. Fatal errors are considered those that would produce invalid compiled PHP code,...
Returns access to an internal BladeValidator instance. If a validator instance does not already exist, one will be automatically created by calling the ValidatorFactory::makeBladeValidator() method. 1 <?php 2 3 use Stillat \ BladeParser \...
Includes the core validators on the internal BladeValidator instance. If a BladeValidator instance does not already exist on the document, a new one will be created automatically via the ValidatorFactory::makeBladeValidator() factory method. Under...
Adds a validator instance to the internal BladeValidator instance. Argument Description $validator The validator instance. 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 use Stillat \ BladeParser \ Validation \...
Adds a list of validator instances to the internal BladeValidator instance. Argument Description $validators The validator instances. 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 5 public function withValidators ( 6 array $...