Showing 10 of 2,044 results.
…= '') 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...
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...
…n the default value Doe to the lastName parameter. If a user does not specify any value when calling the command, the default value is used: 1 <?php 2 3 // ... 4 5 // Assigning the lastName parameter a default value. 6 protected $ signature = '...
…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,...
…truct paths relative to the configuration directory by supplying a $path .The signature of the config_path function is: 1 function config_path ( 2 $ path = ' ' 3 ) ;The following examples will assume that the Laravel application is installed in...
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...
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...
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 \...
…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...