Showing 10 of 1,322 results.

Laravel String Helper Function: str_plural

…ural helper method will attempt to return a plural version of the given $value . It does this through a series of specialized internal functions, that will not be covered in great detail here. This helper method will apply general rules to...

Templating

…ly, the log_search tag will log all exception's to your site's default log. It will not display the exception within the browser. This will instruct Search Report for Statamic to create a new log entry after a response has been sent to your...

Method 2: Using Events | Guide: User-Only Comment Setup

…n ( Comment $ comment ) { 30 $ comment -> setDataAttribute ( ' authenticated_user ' , auth ( ) -> user ( ) -> getAuthIdentifier ( ) ) ; 31 $ comment -> save ( ) ; 32 } ) ; 33 } 34 35 /** 36 * Determine if events and listeners should be...

Ignored Strings | Formatter Configuration and Usage

Strings will be ignored if any of the following conditions are met (these behaviors cannot be disabled at this time): The string does not contains a space, The string contains newline characters, The string contains any of the following...

Parser Nodes Overview

The document parser returns a list of nodes as a result of parsing. There are many different types available, depending on the input template. The most basic node type is the LiteralNode , representing the template's non-Blade parts. If an input...

Literal Nodes | Parser Nodes Overview

Instances of Stillat\BladeParser\Nodes\LiteralNode are created to represent the non-Blade content contained within an input document. Literal nodes maintain helpful information, such as the original trailing and leading whitespace discovered while...