Showing 10 of 2,145 results.

Configuration Overview

Site Essentials for Statamic provides many configuration files, each focusing on a specific subset of features. If you have not yet published the configuration files, you can do so by running the following command from the root of your project: 1...

Laravel Collection Public API: forPage

forPage($page, $perPage) 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...

Preventing Duplicate Jobs | Using a Job Queue

When alerts are enabled it is possible for many jobs to be created if content editors save their changes frequently while editing. To help reduce the total number of image generation jobs created, Social Media Image Kit provides a feature to...

Translation Strings

The default Tidal template uses translation strings and Statamic's translation tags. The default translation files can be found in the lang/en/ directory. By default, the following language files are available for customization: Filename...

Removing Existing Favicons | Favicon Configuration

By default the favicon generator will attempt to cleanup any previously generated favicons. This feature can be disabled by changing the remove_existing configuration value within the site_essentials/favicons.php configuration file: 1 <?php 2 3...

Configuring the Blade Parser | Formatter Configuration and Usage

You may optionally configure the Blade parser by creating a file named .blade.format.json at the root of your project. The options that can be used currently are: customIfs, : A list of custom if statements. These provide hints to the parser and...

Laravel Collection Public API: sum

sum($callback = null) The sum is a simple method that returns the sum of all items in a collection. It also defines a $callback parameter which can be used to tell the sum method which values of the collection should be added together. If no items...

Laravel: Implementing a CRYPT_SHA512 Hasher

In this article we will create an implementation of Illuminate\Contracts\Hashing\Hasher using PHP's crypt function and the CRYPT_SHA512 hashing function. Like in the previous sections, we will examine each method before looking at the full...