Showing 10 of 1,204 results.

Laravel 5 String Helpers: Parse Callback

parseCallback is a fairly simple method, even though it serves a somewhat specialized purpose. The following syntax for class names and method names can be found utilized throughout the Laravel framework: 1 ClassName @ someMethodName The point is...

Creating a Hybrid Cache System for Statamic: Part Two

…r sections to include other data types. Another option would be to add explicit getters for each data type, but the associative array method also works as long as you are consistent with the implementation. Additionally, I would not expect any...

Parser Errors

The parser, and other related systems, are capable of reporting various errors under certain circumstances. For instance, the document parser will create errors if a @verbatim directive is not paired correctly with an @endverbatim directive....

Custom Command Styles With Laravel Artisan

…e fg property to a valid foreground color value. The background color can also be styled by setting the bg property to a valid background color value. The following example would also set the background color to yellow . Note that each property...

Specifying Custom Directive Names | The Document Parser

By default, the document parser does not know any custom directives available within an application. This decision was made to help keep the parser as standalone and reusable as possible. However, it is simple to teach the parser about custom...

Creating a Hybrid Cache System for Statamic: Part Four

…s from within our templates. The logic will be straightforward: We will provide utility methods, create an Antlers tag to specify a custom expiration, and store that alongside the cached response contents. When serving the cached content, we will...

Filter Search