Showing 10 of 1,214 results.

getPhpBlocks | Querying Document Nodes

…e document that were created using Blade's @php / @endphp directives. Raw @php directives that contain arguments will not be converted to instances of PhpBlockNode , and will instead become instances of DirectiveNode . 1 <?php 2 3 use Stillat \...

getComponents | Querying Document Nodes

Returns all component tags within the document. This method will return all component tags within the document, including closing tags and self-closing tags. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function...

getOpeningComponentTags | Querying Document Nodes

Returns all self-closing or opening component tags. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function getOpeningComponentTags ( ) : NodeCollection ; Example Use 1 <?php 2 3 use Stillat \ BladeParser \ Document \...

findComponentsByTagName | Querying Document Nodes

Finds all components with the provided tag name. This method will return all component tags that match the provided name, including closing tags. Argument Description $tagName The tag name to filter on. 1 <?php 2 3 use Stillat \ BladeParser \...

findComponentByTagName | Querying Document Nodes

Returns the first component tag within the document with the provided name. Argument Description $tagName The tag name to filter on. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ Components \ ComponentNode ; 4 5 public function...

findNodePattern | Querying Document Nodes

…e instances of LiteralNode . Argument Description $pattern The desired pattern. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 public function findNodePattern ( 6 array $ pattern 7 ) : Collection ; Example Use 1 <?php 2 3 use Stillat \...

Laravel Collection Public API: groupBy

groupBy($groupBy, $preserveKeys = false) The groupBy method is used to group a collection based on a given value, represented by the $groupBy parameter. An argument passed to $groupBy can be a simple string, representing the value that the...

hasErrorOnLine | Validating Documents

Tests if an error matching the provided properties exists on a specific line. Argument Description $line The line to check. $type The error type to check for. $context The error context. 1 <?php 2 3 use Stillat \ BladeParser \ Errors \ ErrorType ;...

withCoreValidators | Validating Documents

…tically via the ValidatorFactory::makeBladeValidator() factory method. Under a typical installation environment, this will load the validators that are configured under the config path: blade.validation.core_validators 1 <?php 2 3 use Stillat \...

Filter Search