Showing 10 of 2,133 results.

Thoughts on a "Guidance Engine"

A while ago I wrote this post about all the curated lists of "awesome" things you can find on GitHub. There is an "awesome" list now for almost any programming topic out there. A lot of these lists are interconnected, even if they were not...

Specifying String Rules | Formatter Configuration and Usage

Similar to excluding or including entire documents, you may also set up a list of rules that are applied to each string. For example, if we only wanted to run the feature on Blade directive or PHP strings that contain the value !tw , we could set...

Message Tags | Laravel String Pluralization

Message tags act as a sort of comment to help explain the various translation messages when dealing with pluralization. Tags appear at the beginning of a translation message, contain no spaces and end with one colon character ( : ). The following...

Laravel 5: Decrypting Strings With decrypt

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

Comparing Just the Key | Laravel Array Helper Function: array_where

…look at an example of just utilizing the key from the key/value compare with the where method. Let's add another array to the mix to keep track of all the students that are currently suspended: 1 <?php 2 3 $ suspendedStudents = [ 4 ' Dennis ' , 5...

What Gets Logged

Search Report for Statamic does not log anything beyond the following: id, : A unique identifier for the search log itself. This does not have any correlation to the user, nor does it provide a way to uniquely identify an individual user,...

Adding Collections to Feeds | RSS and Atom Feeds

The documentation collection has already been added to the default RSS/Atom feed. To add additional collections, update the config/feedamic.php configuration file and add the desired collections to the collections array: 1 <?php 2 3 return [ 4 //...

Recursive Comments (Nested Replies) | Responses and Replies

Displaying comments recursively, or a nested list, is a common visual pattern on web pages. This feature relies on the following Statamic pull request: https://github.com/statamic/cms/pull/8421 . Until this is generally available, you will need to...