Showing 10 of 1,214 results.

getErrors | Blade Compiler

Retrieves a collection of all parser errors. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 public function getErrors ( ) : Collection ;

Example Use | Laravel 5: String Translation Public API

…oblem to solve. The table located at https://www.unicode.org/cldr/charts/25/supplemental/language_plural_rules.html gives a sense of the differences between different locales and the rules of pluralization. While words in the English language, by...

5. Conveying Modified Source Versions. | License

…ices”., c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all...

Laravel Helper Function: config

…' keyTwo ' => ' valueTwo ' , 7 ' keyThree ' => ' valueThree ' 8 ] ; 9 10 // Store all three key/value pairs in the config. 11 config ( $ newConfigurationValues ) ; In the above example all three key/value pairs will be stored in the configuration...

Validating Documents

The document validation system provides a convenient wrapper around the Blade Parser's validation system. Using the validation system, we can quickly run any number of validators against our input document to catch potential compilation or runtime...

getErrors | Validating Documents

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...

getNodeArray | Blade Documents

Gets the document nodes as a normal array. Returns a PHP array containing the nodes that represent the parsed template. The nodes returned by this call are the same as those from the getNodes method call. 1 <?php 2 3 public function getNodeArray (...

The Validate Command

The Blade Parser library provides a blade:validate Artisan command that checks all the Blade template files within the current project.

Core Validators | The Validate Command

The Blade Parser library provides many validation rules out of the box. You can learn more about each of them in the following sections.