Showing 10 of 2,138 results.

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

Examples of Specific Numbers | Laravel String Pluralization

The following table will show more examples of handling specific numbers when dealing with pluralization translation. The table will use the following translation message: 1 {0} There are no books! 2 |{1,2,3} You have one, two or three books. 3...

Example Use | Laravel 5: Encoding HTML With the "e" Helper Function

Let's assume that a malicious user was posting on a forum and set the subject of their post to this: 1 < script > alert ( " hello everyone " ) ; < / script > If the forum software did not sanitize user output, perfectly valid JavaScript code would...

all | The Laravel Framework Console Kernel

The all method is used to get all of the commands that have been registered with the console application. The commands will be returned as an array with the command name as the key and the command's class instance as the value. This method will...