Showing 10 of 2,138 results.

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 is particularly helpful if you want to reuse the results of a partial, or navigation menu in multiple places without having to render...

Introduction & Installation

Attribute Renderer is a utility addon for Statamic that helps create HTML attribute strings from arrays. At a high level, it allows you to convert something like this: 1 <?php 2 3 use function Stillat \ StatamicAttributeRenderer \ attributes ; 4 5...

The Statamic Add-on Roundup

This article was written for a site migration that happened targeting an early version of Statamic 2. The content of this article is outdated, and no longer applies to the Stillat.com website. I was asked on Twitter about the custom Statamic...

Laravel Helper Function: session

session($key = null, $default = null) The session function is a versatile function. It can be used to return the \Illuminate\Session \SessionManager instance, to set session values and to retrieve session values.

Laravel Collection Public API: shuffle

shuffle The shuffle method is used to rearrange the items of the array in a random distribution. The shuffle method will return a new collection and will not modify the original collection instance. The following code example shows the usage of...