Showing 10 of 2,145 results.

Array Sort Considerations | Laravel 5: Sorting Arrays With sort

The array_sort function internally creates a new instance of the \Illuminate\Support\Collection class with the given $array and then calls the collection's sortBy(callable $callback = null) method with the given $callback . It then converts the...

Laravel Application Helper: abort_unless

abort_unless($boolean, $code, $message = '', array $headers) The abort_unless helper is the logical opposite of the abort_if helper function. Like abort (discussed in the Laravel Application Function: abort article) and abort_if (discussed in the...

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.