Showing 10 of 2,145 results.

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...

BuildResources | The Statamic Add-on Roundup

The BuildResources add-on only provides some incredibly specialized console commands. There is a section of the site Technology Resources . This section of the site parses many of the "awesome" lists that can be found on GitHub and provides...

Request | The Statamic Add-on Roundup

The Request add-on provides a request tag that can be used to get information about the client's request. For example, there was no easy way to determine if a URL query parameter was present; that was the main reason this add-on exists. It is used...

Laravel Application Helper: old

old($key = null, $default = null) The old helper function is used to retrieve an old input item. It is a shortcut to calling the Illuminate\Http\Request::old instance method. It accepts a $key argument and a $default argument. They $key should be...