Showing 7 of 1,697 result(s)
…fairly simple, and in most cases the collections will be more complicated. For example, consider the following sample collection of products: We can calculate the average price of all items in the collection by simply passing in a value for the...
In the following example, we will examine how to compare just the values of the arrays. Assume we have an array of numbers, from 0 to 100 : $numbers = range(0, 100); An array of all numbers less than or equal to 10 can be created like so:...
The details used to generate your site's site.webmanifest file are contained within the site_essentials/webmanifest.php configuration file. Because of the large amount of options available when creating a manifest file, and the various...
…ble argument. The first thing we have to do is define what our function is going to do. Our function will be a simple utility function called if_null_then . It will check if a value is null , if it is, then it returns a default value $then , or...
…confusing at first. The method call returns true even though there is no es locale by default. The method call returns true because Laravel supports a fallback locale, which will be used to look up translations if a translation does not exist for...
…aspect of site development. Some tags are a bit obscure, but some are generally applicable to many types of projects. se_capture Tag, The se_capture tag can be used to store the results of a template section, and output it later as a string. This...
…e = null) The where method allows developers to filter a collection given a key value pair. It filters the collection's items by checking that the given $key has some value equal to the provided $value . An argument can be supplied for the...