Showing 10 of 1,280 results.

Specifying Custom Directive Names | The Document Parser

…er \ DocumentParser ; 4 5 $ parser = new DocumentParser ; 6 7 // Specify the custom directive names. 8 $ parser -> setDirectiveNames ( [ 9 ' disk ' , 10 ' elsedisk ' , 11 ' enddisk ' 12 ] ) ; Alternatively, we can retrieve all custom directives...

Creating a Hybrid Cache System for Statamic: Part Two

…th the implementation. Additionally, I would not expect any third-party system to interact with this method, and its use is essentially "internal." The next step will be to retrieve the paths of the templates. We can accomplish this by making use...

Pint Temporary Directory | Formatter Configuration and Usage

The Blade formatter will extract the relevant PHP from Blade templates and place them in a temporary file to supply to Laravel Pint. By default this directory is located at node_modules/prettier-plugin-blade/_temp . Temporary files are...

Ambiguous Character Sequences | Core Concepts

The first difference is in how the parser parses structures, such as a simple echo containing ambiguous characters: 1 {{ ' hello {{ world }} ' }} The previous example results in the following compiled output: 1 <?php 2 3 // Laravel Compiler Output...

Creating a Custom Statamic 500 Server Error Page

An often overlooked aspect of creating a Statamic or Laravel application is customizing the 500 Server Error page. By default, a Statamic site will display an error page similar to this when a catastrophic error occurs: Granted, this is much...

Filter Search