Showing 10 of 2,055 results.

compile | Compiling Documents

Compiles the current document. Compiles the current document to PHP. The compiler instance used internally is constructed by calling the CompilerFactory::makeCompiler() static method. 1 <?php 2 3 use ? Stillat \ BladeParser \ Document \...

Laravel Artisan Cache Command: The cache:clear Command

…ional store parameter which can be used to change which cache store is cleared. By default the store parameter will be set to whatever value is stored in the cache.default configuration entry (by default this is file ). The following are examples...

Laravel 5: Getting the First Element of an Array With head

…n does not modify the array.The signature of the head helper function is: 1 function head ( 2 $ array 3 ) ;Consider the following array: 1 $ sampleArray = [ 2 ' first ' , 3 ' second ' , 4 ' third ' 5 ] ; We can get the first element of the array...

Creating Facades | Laravel 5 Facades

…* Adds two numbers. 7 8 * @param mixed $firstNumber 9 * @param mixed $secondNumber 10 * @return mixed 11 */ 12 public function add ( $ firstNumber , $ secondNumber ) 13 { 14 return $ firstNumber + $ secondNumber ; 15 } 16 17 // Possibly many more...

Laravel Helper Function: env

…get an environment variables value. If an environment value with the given $key exists, its value will be returned. If the given $key does not exist, the $default value will be returned instead, which is null by default. The following examples...

Format Options | Formatting CLI

…" maxStatementsPerLine " : 3 , 6 " tabSize " : 4 , 7 " formatExtensions " : [ 8 " .antlers.html " 9 ] 10 } Setting Description formatFrontMatter Controls whether document Front Matter is formatted. insertSpaces Controls whether the Antlers...