Showing 10 of 1,322 results.

Laravel Collection Public API: diff_keys

diffKeys($items) The diffKeys method is similar to the diff method. It is used to determine which items whose keys in the collection are not present in the supplied $items collection's keys. $items can be either an array, or another instead of...

se_radius_excerpt Modifier

The se_radius_excerpt modifier may be used to create an excerpt of the provided text. It will attempt to include the text on either side of the search string, up to a certain character count or radius . By default, the se_radius_excerpt modifier...

Laravel 5 Collections: The Public API

…ts. The Collection API exposes methods for retrieving values from a collection, transforming the underlying array, pagination and simple aggregate functions, along with many others. This section will cover most of the methods in the public API,...

Creating Our Modifier | Creating a Statamic Compact Modifier

In this section we will work on getting our custom modifier created, and start on it's implementation. To get started, we will use Statamic's please utility to help us scaffold the code. From the root of your project, issue the following command...

Document Structures

While there are many Blade directive "pairs," such as the conditions, stacks, and related, Blade is inherently a structureless templating language. However, the Blade Parser library can make sense of structures within a Blade template to help tool...

Laravel Collection Public API: diff

diff($items) The diff method is used to determine which items in the collection are not present in the supplied $items collection. $items can be be either an array, or another instance of Collection . The diff method returns a new instance of...

Disabled Comments

Since it is possible for Meerkat to disable new comment submissions for any given post on your site, it might be a good idea to have your template adapt and display a message to visitors. By default, Meerkat does not close comment threads...

Modifying the Windows Hosts File

This post will explain how to modify the hosts file on a Windows machine (this post will work for Windows Vista and newer). There are a few different reasons you may need to modify the hosts file, and the most common reason I have seen so far is...