Showing 10 of 2,145 results.

Handling Specific Numbers | Laravel String Pluralization

Sometimes it is useful to associate a given message number with exactly one number. All of the previous examples have not dealt with the pluralization case when there is no items (when the $number is exactly 0 ). Passing 0 to the previous...

Laravel Array Helper Function: array_get

get($array, $key, $default = null) The get helper method will retrieve an item from the given $array using dot notation. This allows developers to retrieve items from the array at arbitrary depths quickly, without having to use PHP's array syntax....

Custom Variable Input | Advanced Filtering

As we saw in the Basic Filtering guide, we can supply input to our comment filters: 1 {{ meerkat : responses filter = " user:in(92283631-5e22-4e21-8764-0aad0cf59bfe, 6f2d63ce-e760-4c5b-85ad-7ddbaf7d7ada) " }} 2 3 < ul > 4 {{ comments }} 5 < li > 6...

Laravel Collection Public API: whereInLoose

whereInLoose($key, array $values) The whereInLoose method is similar to the whereIn (discussed in the Laravel Collection Public API: whereIn article) method in that both methods can be used to filter the collection based on a given $key and an...

Adventures in Blade | Laracon, Blade and What's Next

Over the years, I've experimented a lot with Blade. Most of those experiments have remained private little adventures, but some have become public. The most popular recently being: Dagger, : An alternative component framework for Blade, focusing...