Showing 10 of 2,138 results.

The user:from_auth Filter | The Auth & User Filters

The user:from_auth filter allows you to filter comments based on if they were left by an authenticated user. It accepts a boolean value, or the wildcard * value (to return comments regardless of if they were left by an authenticated user). The...

setSelector(MessageSelector $selector) | The Laravel Translator

The setSelector method sets a Symfony\Component\Translation\MessageSelector instance ( $selector ) for the Translator . The MessageSelector instance is used by the choice and transChoice methods for loading the correct translation message based on...

Guide: User-Only Comment Setup

This guide contains the steps to configure Statamic and Meerkat to only accept comments from authenticated users. After completing this guide, your site will only accept comments from authenticated users, without requiring user names or emails to...

Laravel Collection Public API: reverse

reverse The reverse method is used to reverse the order of items in a collection. The reverse method returns a new Collection instance. The reverse method does not preserve numerical keys but will preserve non-numerical keys. The following code...

The where:in Filter | The "where" Filters

The where:in accepts an arbitrary comment property to check, and a list of values to check against. The filter will return only those comments whose property value exists in the provided list of values. The following example will return only those...

Closure Based Variable Resolvers | Introduction & Installation

We can supply a Closure as the value of our attribute in order to resolve more complicated values. We will receive the context array as the first argument: 1 <?php 2 3 use function Stillat \ StatamicAttributeRenderer \ attributes ; 4 5 attributes...