Showing 10 of 1,322 results.

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

Laravel 5 Collections: Filtering Collection Elements With where

…tor parameter to control how the method internally compares the given key against the value. The where method will return a new collection instance containing all the items the match the given criteria. The original collection instance will not...

Default Laravel Classes That Support Macros

…trait. There are, at the time of this writing, six classes that ship with direct support for macros: Class Description Illuminate\Routing \ResponseFactory Responsible for creating responses that will be sent back to the client....

No Comment Messages | Responses and Replies

To offer the best user experience, you may wish to display a message to users to encourage them to leave the first comment on a blog post or page. To do this, we will make use of the no_results value that is available to use when rendering Meerkat...

Laravel 5: Checking if a Variable Holds a Value With filled

The filled helper function is the logical opposite of the blank helper function, and can be used to quickly determine if the provided value has a non-null, or non-empty value. The provided $value is considered filled if any of the following...

Laravel Miscellaneous Helper Function: data_fill

data_fill(&$target, $key, $value) The data_fill helper function accomplishes the same fundamental task as the data_set helper function. The only difference is that the data_fill does not define an optional $overwrite parameter. data_fill...