Showing 10 of 2,133 results.

Laravel Array Helper Function: array_divide

The divide helper method will take the given $array and create two new arrays. The first array will be all of the keys from the original $array and the second array will be all of the values. 1 <?php 2 3 use Illuminate \ Support \ Arr ; 4 5 $...

resolveStructures | Document Structures

Resolves structures within the document, such as directive pairs. Structural analysis can only be performed once on a Document instance. If changes have been made to the node structure, you are encouraged to call the toDocument() method to...

How the Parser Interacts with Other Features | Core Concepts

…odes, or AST, to almost every other feature within the library. The following diagram gives a surface-level overview of how the library is structured: The document parser receives a Blade template as input and produces the AST. The resulting AST...

Laravel 5 String Helpers: Pluralization and Strings

The plural helper method will attempt to return a plural version of the given $value . It does this through a series of specialized internal functions, that will not be covered in great detail here. This helper method will apply general rules to...

withDefaultCompilerOptions | Compiling Workspaces

Removes any custom compiler options and restores the workspace to defaults. 1 <?php 2 3 use Stillat \ BladeParser \ Workspaces \ Workspace ; 4 5 public function withDefaultCompilerOptions ( ) : Workspace ;

Workspaces

Documents make it easier to work with the many types of nodes produced by the parser, and Workspaces make it easier to interact with many documents simultaneously. Using workspaces, we can compile multiple documents at once or look for specific...

getPhpTags | Workspaces

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

Laravel MessageBag Public API: __toString

When a MessageBag instance is cast into a string, its JSON representation is returned as the result. Internally this is accomplished by returning the result of the toJson method. 1 <?php 2 3 use Illuminate \ Support \ MessageBag ; 4 5 // Create a...

URL | Open Graph Metadata

The url method queues a <meta property="og:url" content="..."> tag. By default it binds to the $current_full_url variable. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 // Adjusting the returned variable. 6...