Showing 10 of 2,133 results.

getPhpTags | Querying Document Nodes

Returns all PHP tags within the document. PHP tags are created after parsing raw PHP regions within the source template. PHP tags will be created whenever the following types of PHP tags are encountered: PHP Short Echo:, <?= ?>, PHP Open:, <?php...

allNotOfType | Querying Document Nodes

Finds all nodes that are not of the provided type. Argument Description $type The type to search. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function allNotOfType ( 6 string $ type 7 ) : NodeCollection ; Example...

removeNode | Blade Documents

Removes the provided node instance from the document. Calling this method will reindex the nodes, but will not trigger structural analysis. If structural analysis has already been performed on the document, calling this method may remove the start...

Example Use | Laravel 5 Fluent API: The Public API

The following method calls are equivalent: 1 $ testObject = new stdClass ; 2 $ testObject -> method = function ( ) { 3 return ' Hello, world! ' ; 4 } ; 5 6 $ fluent = new Fluent ( $ testObject ) ; 7 8 // Using the `getAttributes` method. 9 $...

Environment Requirements | Contributing

In order to run and build the extension's projects locally, your development machine will require the following to be available: node.js, and npm, TypeScript

Syntax Highlighting | Contributing

There are two ways syntax highlighting is provided by the Antlers Language for Statamic extension: grammar files and semantic highlighting. If you are used to TextMate grammars, or regular expression based grammar files, contributing to the...

extractText | Text Extraction

Extracts the text from 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"...

Laravel 5: Getting the Last Element of an Array With last

The last function is the logical opposite of the head function: it will return the last element of an array without modifying the array. The last helper function is a wrapper around PHP's end function.The signature of the last function is: 1...