Showing 10 of 2,133 results.

allOfType | Querying Document Nodes

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

firstOfType | Querying Document Nodes

Locates the first instance of the provided node type in the document. Argument Description $type The node type. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ AbstractNode ; 4 5 public function firstOfType ( 6 string $ type 7 ) : AbstractNode ;...

lastOfType | Querying Document Nodes

Locates the last instance of the provided node type in the document. Argument Description $type The node type. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ AbstractNode ; 4 5 public function lastOfType ( 6 string $ type 7 ) : AbstractNode ;...

getNodesBefore | Querying Document Nodes

Gets all the nodes before the provided node. Argument Description $node The check node. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ AbstractNode ; 4 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 5 6 public function getNodesBefore ( 7...

Laravel String Helper Function: length

…character encoding. The signature for the length helper method is: length($value) 1 use Illuminate \ Support \ Str ; 2 3 // 5 4 echo Str :: length ( ' 12345 ' ) ; 5 6 // 120 7 echo Str :: length ( str_repeat ( ' n ' , 120 ) ) ;str_repeat is a...

Inconsistent Directive Casing | The Validate Command

Class : InconsistentDirectiveCasingValidator The inconsistent directive casing validator emits a validation error when a directive's casing within the template does not match the directive's definition. The following template: 1 @ENDPHP will emit...

Updating Feedamic Configuration Values | RSS and Atom Feeds

If you are making changes to your Feedamic configuration and are not seeing your changes reflected, you may need to clear your site's application cache. This can be done by running the following command from the root of your project: 1 php artisan...

Ordering Comments | Sorting Comment Threads

To specify a custom sort order, we can use the order parameter in the {{ meerkat:responses }} tag: 1 {{ meerkat : responses order = " id,desc " }} 2 3 {{ comments }} 4 <!-- Render the comment thread here. --> 5 {{ /comments }} 6 7 {{ /meerkat :...

Image Asset | Open Graph Metadata

The imageAsset helper method accepts an Asset instance and generates the following meta tags based on the asset's information: 1 <meta name="image" property="og:image" content="..."> 2 <meta property="og:image:width" content="..."> 3 <meta...