Showing 7 of 1,975 result(s)
A few properties of your site can be configured by using the "Site Settings" global, directly within the control panel: Site Name, : Controls the title that appears on the site (, important, : make sure to also update your site's, APP_NAME,...
transform(callable $callback) The transform is identical to the map method, but instead of returning a new Collection instance, the transform method will modify the original collection instance. The transform method will return a reference to the...
The avg method is a useful method for calculating the average of all items in the collection. The avg method defines an optional $key parameter, which can be used to specify what property of the collection should be averaged. If no key is...
In mathematics, the median value is the numeric value that separates the higher half a data sample from the lower half; the median value does not necessarily exist within the data set itself. The median method can be used to get the median value...
The forPage method is used to implement pagination over collections. The forPage defines two parameters: $page , which is used to tell the collection which "page" should be returned and $perPage , which is used to control the number of items that...
…named 500.antlers.html . The .antlers.html extension is important, and will allow us to utilize Antlers when writing our custom error page. We will set the contents of this file to the following for now: {{ dump }} Our project's directory...
Before continuing, we will make some additions to our applications Volt service provider. In app/Providers/VoltServiceProvider.php : Our additions will create a new director for us to store our compiled components and add to the array of paths...