Showing 10 of 1,322 results.

Laravel MessageBag Public API: keys

…length = 6 ) It can be seen that the results contain only the keys that were added to the MessageBag instance.This article is the start of a mini-series about Laravel's ErrorMessageBag component. Click through the rest of the articles to continue...

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

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

getNodesBefore | Querying Document Nodes

…BladeParser \ Nodes \ NodeCollection ; 5 6 public function getNodesBefore ( 7 AbstractNode $ node 8 ) : NodeCollection ; Example Use 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 5 $ template = <<< ' BLADE ' 6 @if {{ $ hello }}...

getNodesAfter | Querying Document Nodes

…\ BladeParser \ Nodes \ NodeCollection ; 5 6 public function getNodesAfter ( 7 AbstractNode $ node 8 ) : NodeCollection ; Example Use 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 5 $ template = <<< ' BLADE ' 6 @if {{ $ hello }}...

Laravel Collection Public API: sort

…items. The sort method does not affect the order of the original collection, but rather returns a new instance of Collection . The following example highlights the use of the sort method without supplying a user-defined comparison function (by...

Filter Search