Showing 10 of 1,322 results.

Registering Metadata Tags | Overview

…tadata facade, typically within your site's AppServiceProvider . The metadata manager utilizes a "builder" concept, allowing you to chain multiple calls for a specific category of metadata information. For example, the following would queue the...

Laravel ViewErrorBag Public API: put

…MessageBag provide a method to quickly remove all the messages from a MessageBag instance, the put method can be used to remove all MessageBag messages, or supply new ones, by changing the MessageBag instance for a given key: 1 <?php 2 3 //...

Blade Parser | That Escalated Quickly: All the New Things

…o released an updated version of Blade Parser , my independent library for parsing and validating Blade templates. This new version brings parity with recent changes related to component tag parsing, as well as adds compiler support for the new...

Querying Nodes on Node Instances | Querying Document Nodes

Querying nodes on ComponentNode or DirectiveNode instances requires structural analysis. Node queries will be evaluated against each nodes list of children nodes. If this is your intent, be sure to call the resolveStructures() method on the...

Laravel String Helper Function: words

The words helper method is similar to the limit function, but instead of limiting the number of characters returned, it limits the number of words returned. The signature for the words helper function is: words($value, $words = 100, $end = '...')...

Laravel Router Helper Function: patch

…. The $uri is the URI of the route, such as / or login . The $action is what will be executed by the router when the route is eventually matched. The $action can be a Closure or a mapping to a controller method. Other advanced options exist, but...

Setting a Session Value | Laravel Helper Function: session

The session function allows setting session values directly by passing in an array of key/value pairs. The following example demonstrates this: 1 <?php 2 3 // Settings two session values 'test' and 'test'2 4 session ( [ 5 ' test ' => ' A test...