Showing 10 of 1,214 results.

getVerbatimBlocks | Workspaces

Returns all verbatim blocks within the workspace. Returns all valid @verbatim / @endverbatim regions within a source document. Unpaired verbatim directives that could not be converted into a valid VerbatimNode instance will either become part of...

extractText | Text Extraction

…rom the document. This method will extract the literal, non-Blade text from the document. By default, this method will reverse Blade escape sequences in the produced text. This behavior can be changed by supplying a "falsey" value for the...

Laravel Translation Helper: trans_choice

…translating it for the given $locale . The choice method accepts the $number of some collection of objects that it should use when making pluralization decisions. Like the trans helper function, it also accepts and array of replacements, using...

getFirstError | Validating Workspaces

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

getFirstFatalError | Validating Workspaces

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

Blade Compiler

The Blade Parser library provides an independent Blade compiler implementation. This implementation is provided to help facilitate testing of the library itself, as well as to provide a convenient way to implement more advanced validation systems...

getFirstError | Blade Compiler

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

getFirstFatalError | Blade Compiler

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

getNodes | Querying Document Nodes

Gets the document nodes. Returns a NodeCollection instance containing the nodes that represent the parsed template. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function getNodes ( ) : NodeCollection ;

Laravel Collection Public API: sort

sort(callable $callback = null) The sort method is used to sort the collection. If no $callback is provided, the collection will be sorted using a case-insensitive "natural order" algorithm. An optional $callback can be supplied to customize the...