The "where" Filters
The where filters provide the greatest control when querying comments across arbitrary comment properties . For example, you can apply comparison operators, or check an arbitrary property against a list of provided values.
Showing 10 of 1,090 results.
The where filters provide the greatest control when querying comments across arbitrary comment properties . For example, you can apply comparison operators, or check an arbitrary property against a list of provided values.
The where filter accepts a comment property, a comparison operator, and a check value as its arguments. You may refer to the comment properties documentation to see what is available when using this filter (custom addon values are also supported)....
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...
…ted function schedule ( Schedule $ schedule ) 6 { 7 // Schedule the command to run in the background. 8 $ schedule -> command ( ' command:name --options ' ) 9 -> daily ( ) 10 -> runInBackground ( ) ; 11 } 12 13 // ... This method changes a public...
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 the name of the input item to...
…; 4 5 // Create a new collection instance. 6 $ collection = new Collection ( [ 7 ' first ' , ' second ' , ' third ' 8 ] ) ; 9 10 // Create a new collection where all the strings 11 // in the original collection have had their case 12 // changed...
The resource_path helper function can be used to resolve the path to the resource directory, or to sub-directory or file contained within the resources directory.The signature of the resource_path function is: 1 function resource_path ( 2 $ path =...
The first change we will make to our addon's composer.json file is to require Statamic as a dependency: 1 { 2 " name " : " stillat/antlers-layouts " , 3 " autoload " : { 4 " psr-4 " : { 5 " Stillat \\ AntlersLayouts \\ " : " src " 6 } 7 } , + "...
Meerkat's configured spam guards may flag comments as spam; these comments may be viewed by accessing the "Spam" filter. If a spam comment still made it through, or no spam guards are configured, users may mark the comment as spam by selecting the...
…st be an array. 18 $ fallbackBehavior = $ translator -> getFromJson ( ' validation.array ' , 19 [ ] , ' example ' ) ; You will notice that the value of the $fallbackBehavior invocation has defaulted to the PHP-based language files. This allows...