Showing 10 of 2,138 results.

Paginated Groups | Responses and Replies

Meerkat 2 introduces the ability to create paginated groups of comments; this feature combines the pagination and grouping features to allow for incredibly customized and complex comment layouts. This feature is intended for advanced use cases; if...

Formatter Configuration and Usage

The Prettier Blade plugin supports many different configuration options. These options can be set my creating a new file at the root of your project (yes, another dot file, I'm sorry) called .blade.format.json . This file should exist at the root...

Laravel Array Helper Function: array_last

last($array, callable $callback = null, $default = null) The last helper method is the logical opposite of the first (discussed in the article Laravel Array Helper Function: array_first method. The difference is that the last function will return...

Configuring Folder Paths | Configuration Overview

By default, Social Media Image Kit will produce a nested folder structure for all generated assets. Folder names are generated using an Antlers template. This template can be changed by modifying the folder configuration value within the...

A Practical Use Case | Building a Simple Statamic Request Addon

So where would we use a tag like this? I personally like to use this on search pages to display a search form to the user if they navigate directly to the search results page without entering a search query (this technique has been implemented on...

Laravel Helper Function: info

info($message, $context = []) The info helper will write an information entry into Laravel's log files. It allows a $message to be set, as well as an optional $context (which is an array of data). While the $context must be an array, the actual...

Laravel Helper Function: decrypt

decrypt($value) The decrypt helper function can be used to decrypt a given $value . The function resolves the configured Illuminate\Contracts\Encryption\Encrypter implementation from the Service Container and then calls the decrypt method on the...