Showing 10 of 1,214 results.

getPhpTags | Workspaces

Returns all PHP tags within the workspace. PHP tags are created after parsing raw PHP regions within a template. PHP tags will be created whenever the following types of PHP tags are encountered: PHP Short Echo:, <?= ?>, PHP Open:, <?php ?>, If...

getLiterals | Workspaces

Returns all literal content nodes within the workspace. Returns the source template's content that could not be parsed into a valid Blade construct. If a document contains no Blade code, the parser will return a single instance of LiteralNode . 1...

getDirectives | Workspaces

…urns all directives within the workspace. Returns all directives from a source document. Some directive pairs, such as the @php / @endphp and @verbatim / @endverbatim pairs will not result in an instance of DirectiveNode , as they are handled by...

Laravel: Implementing a MD5 Hasher

…eException ; 6 use Illuminate \ Contracts \ Hashing \ Hasher as HasherContract ; 7 use Illuminate \ Support \ Str ; 8 9 class Md5Hasher implements HasherContract 10 { 11 12 const FAILED_HASH = ' *0 ' ; 13 14 /** 15 * Hash the given value. 16 * 17...

Simple Filter Parameters | Basic Filtering

Beyond the default filters, Meerkat also offers a handful of simple filter parameters that can be used (Meerkat filters can get much more powerful, but we will get into that later). These filter parameters are: Filter Description Type Default...

Data Tools | The Statamic Add-on Roundup

The DataTools add-on allows me to perform arbitrary arithmetic and comparison operations within an Antlers template. Granted, I could have enabled PHP within templates but I really didn't want to (also, there might be some syntax to accomplish...

Blade Documents

The Documents API is the simplest way to begin parsing and analyzing individual Blade templates and provides a cohesive API that combines many of the library's unique features. Documents are constructed from the nodes created by the document...

Component Shorthand Variables | The Validate Command

Class : ComponentShorthandVariableParameterValidator The component shorthand variables validator will check for potential typos or unexpected values when working with shorthand variable syntax. The following template: 1 < x-profile $:message /> <...

Filter Search