Showing 10 of 2,133 results.

Procedures | Procedure vs. Function vs. Method vs. ?

Procedures are sort of like functions, in the fact that they are sort of a language copy and paste feature. The defining difference is that a procedure does not return a value. You can thing of it kind of like this: a function determines how...

Overview

Site Essentials for Statamic provides a robust metadata management system, easing the creation and management of a wide-variety of HTML title, meta, and link tags. The metadata management system can be used for a wide variety of scenarios,...

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 \...

Laravel Array Helper Function: array_flatten

The flatten helper method is similar to the dot method in that it takes a multi-dimensional array and transforms it into a new array with only one dimension. While the dot method preserves the keys by separating them with dots , the flatten method...

Command Interoperability and Laravel Artisan Applications

The typical Artisan command development workflow involves writing commands that interact with different components of the application or external services; the commands themselves are usually isolated in their scope and generally do not depend on...

Laravel String Helper Function: finish

The finish helper method will make sure that a given $value always ends with exactly one occurrence of the $cap . This helper method is incredibly useful when construction URIs or file paths. The $cap can be any string of characters, and does not...