Search

Showing 7 of 1,216 result(s)

/blog/2016/11/21/laravel-miscellaneous-helper-function-data_fill

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

/blog/2016/11/21/laravel-url-helper-function-secure_asset

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

/blog/2016/11/29/laravel-collection-public-api-flatmap

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:

/blog/2016/11/29/laravel-collection-public-api-min

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

/blog/2016/11/30/laravel-collection-public-api-__tostring

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

/blog/2016/11/30/laravel-collection-public-api-average

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.

/blog/2016/11/30/laravel-collection-public-api-whereloose

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