Showing 10 of 2,044 results.

Laravel Application Helper: public_path

…= '') The public_path will return the path to the public directory. It can also be used to construct paths relative to the public directory if a $path is supplied. The following examples will assume that the Laravel application is installed in...

Laravel Array Helper Function: array_build

The $build helper method will create a new array with the original array's key/value pairs after they have been run through the $callback function. The $callback function should return an array with the new key and value. The signature for the...

Integrating Meerkat

…miliar features and syntax. Meerkat provides support for the Antlers templating system out-of-the-box, and before going further it is recommended you catch up on Antlers Templates . While Meerkat's collection syntax is very close to Statamic's,...

Laravel Application Helper: auth

auth($guard = null) Used without supplying any arguments for $guard , the auth helper function is an alternative to using the Auth facade. With no arguments, the auth function returns an instance of Illuminate\Contracts\Auth\Factory (which by...

getLiterals | Querying Document Nodes

Returns all literal content nodes within the document. Returns the source template's content that could not be parsed into a valid Blade construct. If a document contains no Blade code, the parser will return a single instance of LiteralNode . 1...

getOpeningComponentTags | Querying Document Nodes

Returns all self-closing or opening component tags. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function getOpeningComponentTags ( ) : NodeCollection ; Example Use 1 <?php 2 3 use Stillat \ BladeParser \ Document \...

getNodesBefore | Querying Document Nodes

…ore ( 7 AbstractNode $ node 8 ) : NodeCollection ; Example Use 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 5 $ template = <<< ' BLADE ' 6 @if {{ $ hello }} @endif 7 BLADE ; 8 9 $ doc = Document :: fromText ( $ template ) ; 10...