Showing 7 of 1,216 result(s)
…l 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 internally makes a call to the data_set (discussed in...
secure_asset($path) The secure_asset function will return a URI composed of the application's URI and the given $path . It internally makes a call to the asset (discussed in the Laravel URL Helper Function: asset article) helper function and...
flatMap(callable $callback) The flatMap method is used in the same way as the map (discussed in the Laravel Collection Public API: map article) method but will collapse the resulting collection. The following two code examples are equivalent:
…iable would contain the value 0 . The following code example shows how to use the min function when specifying a $key : After the above code has executed the $min variable would contain the value 5.0 and the $minName variable would contain the...
__toString() When a Collection instance is cast into a string, its JSON representation is returned as the result. Internally this is accomplished by returning the results of the collection's toJson (discussed in the Laravel Collection Public API:...
average($key = null) The average method is simply an alias of the avg (discussed in the Laravel Collection Public API: avg article) method, and can be used in exactly the same way to calculate the averages of items within a collection.
…t the given $key has some value equal to the provided $value . The whereLoose method does not check to make sure the item's value and the provided $value have the same data type. This is the fundamental difference between the where (discussed in...
The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.