Search

Showing 7 of 1,975 result(s)

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

unique($key = null) The unique method can be used to get all the unique items in the collection. It accepts an option $key which can be used to further restrict which items are returned. The unique method returns a new instance of Collection with...

/blog/2018/04/22/laravel-5-collections-determining-the-most-common-value-in-a-collection-with-mode

In a data set, the mode is the value that appears most often. The mode method will return the mode of the data set contained within the collection; you may also specify a $key to narrow which data field the collection looks at when determining the...

/blog/2018/04/22/laravel-5-collections-filtering-collections-with-without-losing-filtered-rejections-partition

The partition method is similar to the filter method, in that it allows you to get a subset of a collection based on some truth condition. However, unlike the filter method, the partition method does not discard the elements that failed the truth...

/blog/2022/05/29/creating-dynamic-css-class-names-with-statamic#content-cleaning-up-the-class-list-whitespace

At first, we may attempt to do something like this: {{ {yield:article_class} | collapse_whitespace }} Using modifiers on the yield tag will not work. Because of how yield and section internally work, yield tag results cannot be used like a...

/blog/2023/02/10/how-to-structure-your-cybersecurity-team-to-work-in-an-agile-environment#content-determine-how-you-will-manage-their-workload

The first step in managing a team's workload is to plan how you will manage their tasks . In an agile environment, this is done by assigning tasks to each member of the team and then measuring the results of those tasks. This allows you to...

/attribute-renderer-for-statamic/v1/introduction-installation#content-resolving-variable-values

…ich is supplied as the second argument to the attributes function. When specifying variable names, we simply prefix them with the $ symbol: 1 <?php 2   3 use function Stillat\StatamicAttributeRenderer\attributes ; 4   5 attributes ([ 6 'name' =>...

/blog/2014/10/18/thoughts-on-a-guidance-engine#content-creating-content-behind-a-pay-wall

…access to learning content. This content may also include access to progress tracking systems such as quizzes, tests, etc. or even access to limited teaching professionals. For some people these systems work great, and that's great. These...