Laravel

Special Cases for Laravel's Pluralization Features

Laravel Any words, or word endings, in the following table will not be affected by the plural method. This is either because the resulting word is already plural, or because there is no inflection available. Word...

Special Cases for Laravel's Singular Pluralization Feature

Laravel Any words, or word endings, in the following table will not be affected by the singular method. This is either because the resulting word is already singular, or because there is no inflection available. Word...

An Extended Example of Retrieving Unique Data Using Laravel Helper Functions

Laravel This is an extended example for the Laravel Array Helper Function: array_fetch article. This article will look at retrieving a unique list of languages using Laravel helper functions. The following student...

Collapsing Laravel Collections using array_collapse

Laravel This article is a continuation of the Laravel Array Helper Function: array_collapse article. The collapse (defined in the Illuminate\Support\Arr helper class) method will also work on Illuminate collections....

Laravel Array Helper Function: array_add

Laravel The add helper method adds the given $key and $value to an $array if the $key doesn't already exist within the given $array. The signature for the add helper method is: add($array, $key, $value) Consider the...